[Pkg-dspam-misc] Bug#463362: dspam: ldap_init implicitly converted to pointer
dann frazier
dannf at debian.org
Thu Jan 31 06:05:17 UTC 2008
Package: dspam
Version: 3.6.8-5.1
Severity: important
Tags: patch
Usertags: implicit-pointer-conversion
Our automated buildd log filter[1] detected a problem that is likely to
cause your package to segfault on architectures where the size of a
pointer is greater than the size of an integer, such as ia64 and amd64.
This is often due to a missing function prototype definition.
For more information, see [2].
[1] http://people.debian.org/~dannf/check-implicit-pointer-functions
[2] http://wiki.debian.org/ImplicitPointerConversions
Function `ldap_init' implicitly converted to pointer at ../../src/ldap_client.c:64
The libldap API has been updated and many functions used by the ldap
plugin are now deprecated. This package should either update to the
new API or define LDAP_DEPRECATED to continue using the deprecated
interfaces.
This patch implements the lazy solution.
--- dspam-3.6.8/src/ldap_client.c~ 2006-05-13 06:17:30.000000000 -0600
+++ dspam-3.6.8/src/ldap_client.c 2008-01-30 23:03:17.000000000 -0700
@@ -26,6 +26,7 @@
#ifdef USE_LDAP
+#define LDAP_DEPRECATED 1
#include <ldap.h>
#include <stdio.h>
#include <stdlib.h>
More information about the Pkg-dspam-misc
mailing list