diff options
author | Volker Lendecke <vl@samba.org> | 2014-06-03 13:03:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-06-10 21:46:15 +0200 |
commit | f4e358bc8b5490ebc696525d5e190f2e9364e196 (patch) | |
tree | d7341d77eab33667ddd2d3753cff38d16fb04581 /libcli/security | |
parent | 7c2b5e77b00bdf776619458920fe74981427ee6a (diff) | |
download | samba-f4e358bc8b5490ebc696525d5e190f2e9364e196.tar.gz |
libcli: Add a NULL check in dom_sid_string
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jun 10 21:46:15 CEST 2014 on sn-devel-104
Diffstat (limited to 'libcli/security')
-rw-r--r-- | libcli/security/dom_sid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c index 90f54018d98..836979e4509 100644 --- a/libcli/security/dom_sid.c +++ b/libcli/security/dom_sid.c @@ -414,6 +414,9 @@ char *dom_sid_string(TALLOC_CTX *mem_ctx, const struct dom_sid *sid) * the length */ result = (char *)talloc_memdup(mem_ctx, buf, len+1); + if (result == NULL) { + return NULL; + } /* * beautify the talloc_report output |