diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2010-04-11 09:51:21 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2010-04-11 09:51:21 +0200 |
commit | 1fe0f16d34e369f1a9e2dbefe1acc7448a1e1b53 (patch) | |
tree | 6a7e4ddff75c63c8f32ed6949fe0676484eccf9b /plugins/check_ldap.c | |
parent | e4613410033dc24d9efe34013c8a35b16487af8f (diff) | |
download | monitoring-plugins-1fe0f16d34e369f1a9e2dbefe1acc7448a1e1b53.tar.gz |
Fix Debian bug #463322: Use deprecated libldap API
| Our automated build 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].
|
| Function `ldap_init' implicitly converted to pointer at
| check_ldap.c:124
|
| [1] http://people.debian.org/~dannf/check-implicit-pointer-functions
| [2] http://wiki.debian.org/ImplicitPointerConversions
|
| 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.
[ http://bugs.debian.org/463322 ]
(Contributed by Dann Frazier, forwarded by Jan Wagner.)
Diffstat (limited to 'plugins/check_ldap.c')
-rw-r--r-- | plugins/check_ldap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 25432de1..49283946 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c @@ -36,6 +36,7 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net"; #include "utils.h" #include <lber.h> +#define LDAP_DEPRECATED 1 #include <ldap.h> enum { |