Don't crash in slapi_send_ldap_search_entry if no attributes specified

This commit is contained in:
Luke Howard 2003-04-26 03:28:12 +00:00
parent b63bdc6513
commit b0e2fd5a8b

View file

@ -1408,8 +1408,12 @@ slapi_send_ldap_search_entry(
AttributeName *an = NULL;
const char *text;
for ( i = 0; attrs[ i ] != NULL; i++ ) {
; /* empty */
if ( attrs != NULL ) {
for ( i = 0; attrs[ i ] != NULL; i++ ) {
; /* empty */
}
} else {
i = 0;
}
if ( i > 0 ) {