Project

General

Profile

Bug #1578

ldap_init implicitly converted to pointer

Added by admin over 11 years ago. Updated about 11 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463368

Our automated buildd log filterr1 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 r2.

r1 http://people.debian.org/~dannf/check-implicit-pointer-functions
r2 http://wiki.debian.org/ImplicitPointerConversions

Function `ldap_init' implicitly converted to pointer at mod_auth.c:545
Function `ldap_init' implicitly converted to pointer at http_auth.c:785

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.

--- lighttpd-1.4.18.orig/src/http_auth.h 2007-01-14 02:40:02.000000000 -0700
+++ lighttpd-1.4.18/src/http_auth.h 2008-01-30 23:40:53.000000000 -0700
@ -6,6 +6,7 @

#if defined(HAVE_LDAP_H) && defined(HAVE_LBER_H) && defined(HAVE_LIBLDAP) && defined(HAVE_LIBLBER)
  1. define USE_LDAP
    +# define LDAP_DEPRECATED 1
  2. include <ldap.h>
    #endif

History

#1

Updated by stbuehler about 11 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

"Fixed" in r2614

Also available in: Atom