Ticket #1578 (closed defect: fixed)

Opened 6 months ago

Last modified 2 days ago

ldap_init implicitly converted to pointer

Reported by: Olaf van der Spek Owned by: jan
Priority: normal Milestone: 1.5.0
Component: core Version: 1.4.18
Severity: normal Keywords:
Cc: Blocked By:
Need User Feedback: no Blocking:

Description

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

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 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) # define USE_LDAP

+# define LDAP_DEPRECATED 1

# include <ldap.h> #endif

Attachments

Change History

Changed 2 days ago by stbuehler

  • status changed from new to closed
  • resolution set to fixed

"Fixed" in [2614]

Add/Change #1578 (ldap_init implicitly converted to pointer)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.