diff options
author | Volker Lendecke <vl@samba.org> | 2010-06-25 17:06:00 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-06-25 17:06:08 +0200 |
commit | 175d9478fea24812046299be6a0224bdc699feb9 (patch) | |
tree | 6e43b1f41060ad978edb0c2c2f2fc5a9fdcd8731 /source3/auth | |
parent | 17cd3d06cb00db9a94375e00aa42832e25c05726 (diff) | |
download | samba-175d9478fea24812046299be6a0224bdc699feb9.tar.gz samba-175d9478fea24812046299be6a0224bdc699feb9.tar.bz2 samba-175d9478fea24812046299be6a0224bdc699feb9.zip |
s3: In make_server_info_info3, check the result of copy_netr_SamInfo3
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index d8e838721e..837e58bb84 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -1111,6 +1111,10 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx, /* copy in the info3 */ result->info3 = i3 = copy_netr_SamInfo3(result, info3); + if (result->info3 == NULL) { + TALLOC_FREE(result); + return NT_STATUS_NO_MEMORY; + } /* Fill in the unix info we found on the way */ result->utok.uid = pwd->pw_uid; |