summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-05-12 12:09:38 +0200
committerAndrew Bartlett <abartlet@samba.org>2017-06-15 09:13:24 +0200
commit5de8074b3917e46cf68762c1b52775e5533a90cb (patch)
treebfed19db2ef5bc177b9060bad0ae74bf7d7c48df /source4
parent3df94e62f478e43ce95923c1c48ba0fef8909142 (diff)
downloadsamba-5de8074b3917e46cf68762c1b52775e5533a90cb.tar.gz
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>
Diffstat (limited to 'source4')
-rw-r--r--source4/ldap_server/ldap_bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_bind.c b/source4/ldap_server/ldap_bind.c
index 7f14384f359..25fe528b2c2 100644
--- a/source4/ldap_server/ldap_bind.c
+++ b/source4/ldap_server/ldap_bind.c
@@ -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;
}
}
}