mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
s4:ldap_server: terminate the connection if talloc_reference fails
talloc_reference will be removed completely in the next commits... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
3df94e62f4
commit
5de8074b39
@ -500,7 +500,7 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
|
||||
&context->sasl);
|
||||
if (NT_STATUS_IS_OK(status)) {
|
||||
if (!talloc_reference(context->sasl, conn->gensec)) {
|
||||
status = NT_STATUS_NO_MEMORY;
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user