mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
s4:libcli/ldap: fix no memory error code in ldap_bind_sasl()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15621 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
2435ab1ad7
commit
8deba427e2
@ -264,7 +264,10 @@ _PUBLIC_ NTSTATUS ldap_bind_sasl(struct ldap_connection *conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
tmp_ctx = talloc_new(conn);
|
tmp_ctx = talloc_new(conn);
|
||||||
if (tmp_ctx == NULL) goto failed;
|
if (tmp_ctx == NULL) {
|
||||||
|
status = NT_STATUS_NO_MEMORY;
|
||||||
|
goto failed;
|
||||||
|
}
|
||||||
|
|
||||||
search = &sasl_mechs_msgs[0]->r.SearchResultEntry;
|
search = &sasl_mechs_msgs[0]->r.SearchResultEntry;
|
||||||
if (search->num_attributes != 1) {
|
if (search->num_attributes != 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user