|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Norbert Warmuth (nwarmuth_at_privat.circular.de)
Date: Mon Sep 02 2002 - 00:17:14 CDT
Hello,
in dict_ldap.c (postfix-1.1.11-20020822 and older snapshots) there's a
call to ldap_get_option with incorrect parameters. It gets invoked
when verbose logging is enabled:
dict_ldap.c (dict_ldap_connect, line 307):
ldap_get_option(dict_ldap->ld,
LDAP_OPT_PROTOCOL_VERSION, (int *) dict_ldap->version))
Note the last parameter.
In openldap-2.0.25/libraries/libldap/options.c this function is
defined as
ldap_get_option(
LDAP *ld,
int option,
void *outvalue)
Casting dict_ldap->version to a pointer does not yield a valid pointer
to store something at and e. g. "smtpd -v" crashes at startup (provided
that it uses ldap maps).
One possible solution for this problem is attached below.
Regards,
Norbert
- text/x-patch attachment: postfix-dict_ldap_verbose.patch
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]