[Date Prev][Date Next] [Chronological] [Thread] [Top]

Assertion triggered in liblber if LDAP server is down (ITS#837)



Full_Name: Gabor Gombas
Version: 2.x-devel
OS: AIX 4.3.3.0
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (157.181.161.4)


Hello,

nss_ldap contains the following code (some details omitted):

msgid = ldap_simple_bind(ld, dn, pw);
rc = ldap_result(ld, msgid, 0, &tv, &result);
if (rc == 0)
  ldap_abandon(ld, msgid);

The problem is: when the LDAP server is down, the ldap_abandon() call triggers
the
"assert(sb->sb_iod != NULL)" check in liblber/sockbuf.c, line 383. I don't know
if
calling ldap_abandon() on a closed connection is valid or not but I think it
should
return an error instead of aborting the application.

Gabor