mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r23404: Fix wrong (and missing) action on error condition in ldap reply evaluation loop
Fixes one of the segfaults in bug #4667
This commit is contained in:
parent
02fd434902
commit
176e1c0b69
@ -965,7 +965,7 @@ again:
|
||||
}
|
||||
if ( ! entry) {
|
||||
DEBUG(2, ("ERROR: Unable to fetch ldap entries from results\n"));
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
/* first check if the SID is present */
|
||||
@ -1180,6 +1180,10 @@ again:
|
||||
} else { /* following ones */
|
||||
entry = ldap_next_entry(ctx->smbldap_state->ldap_struct, entry);
|
||||
}
|
||||
if ( ! entry) {
|
||||
DEBUG(2, ("ERROR: Unable to fetch ldap entries from results\n"));
|
||||
break;
|
||||
}
|
||||
|
||||
/* first check if the SID is present */
|
||||
sidstr = smbldap_talloc_single_attribute(
|
||||
|
Loading…
Reference in New Issue
Block a user