mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Don't crash in slapi_send_ldap_search_entry if no attributes specified
This commit is contained in:
parent
b63bdc6513
commit
b0e2fd5a8b
1 changed files with 6 additions and 2 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue