diff options
author | Jeremy Allison <jra@samba.org> | 2015-01-13 13:49:36 -0800 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2015-01-14 06:24:06 +0100 |
commit | 83066ed539658a9fa6deb897b15b20a0624227fe (patch) | |
tree | 96905bf9b0f17a9ec27f20cd185091591516d13a | |
parent | 60895e62fe21e41cf4a09ec8a92239b8f015b450 (diff) | |
download | samba-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.c | 4 |
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); |