#include <stdio.h>
#include <ac/stdlib.h>
-#include <ac/ctype.h>
#include <ac/socket.h>
#include <ac/string.h>
#include <ac/time.h>
assert( sctrls != NULL );
if ( ld == NULL || sctrls == NULL ||
- entry == NULL || entry->lm_msgtype == LDAP_RES_SEARCH_ENTRY )
+ entry == NULL || entry->lm_msgtype != LDAP_RES_SEARCH_ENTRY )
{
return LDAP_PARAM_ERROR;
}