[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Bug in chkResponseList loop (ITS#1047)
Full_Name: David Steck
Version: devel
OS: NT
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (137.65.133.68)
Looks like a bug in chkResponseList().
This loop walks down the lm_chain of a message,
but is always examining the first node in the chain.
for ( tmp = lm; tmp != NULL; tmp = tmp->lm_chain ) {
if ( lm->lm_msgtype != LDAP_RES_SEARCH_ENTRY
&& lm->lm_msgtype != LDAP_RES_SEARCH_REFERENCE
&& lm->lm_msgtype != LDAP_RES_EXTENDED_PARTIAL )
{
break;
}
}
The lm->lm_msgtype should be tmp->lm_msgtype.
The problem appears in ver 1.54 and later.