summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2015-01-13 13:49:36 -0800
committerVolker Lendecke <vl@samba.org>2015-01-14 06:24:06 +0100
commit83066ed539658a9fa6deb897b15b20a0624227fe (patch)
tree96905bf9b0f17a9ec27f20cd185091591516d13a
parent60895e62fe21e41cf4a09ec8a92239b8f015b450 (diff)
downloadsamba-83066ed539658a9fa6deb897b15b20a0624227fe.tar.gz
samba-83066ed539658a9fa6deb897b15b20a0624227fe.tar.xz
samba-83066ed539658a9fa6deb897b15b20a0624227fe.zip
s3: auth: Add previously missing allocation fail check.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
-rw-r--r--source3/auth/server_info.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/auth/server_info.c b/source3/auth/server_info.c
index 7b1cdd574b..b537390449 100644
--- a/source3/auth/server_info.c
+++ b/source3/auth/server_info.c
@@ -648,6 +648,10 @@ NTSTATUS passwd_to_SamInfo3(TALLOC_CTX *mem_ctx,
}
info3->base.domain_sid = dom_sid_dup(info3, &domain_sid);
+ if (info3->base.domain_sid == NULL) {
+ status = NT_STATUS_NO_MEMORY;
+ goto done;
+ }
ok = sid_peek_check_rid(&domain_sid, &group_sid,
&info3->base.primary_gid);