summaryrefslogtreecommitdiffstats
path: root/source3/auth/auth_sam.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-04-02 05:53:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:03 -0500
commitccc06f84415a0496b8f3771e8888f81442acd808 (patch)
treeba6cdd8ef0b98126ff07f9658510ab87c4bf12ba /source3/auth/auth_sam.c
parentfb3835846ef89a632230ff808259dad1cddc05c0 (diff)
downloadsamba-ccc06f84415a0496b8f3771e8888f81442acd808.tar.gz
samba-ccc06f84415a0496b8f3771e8888f81442acd808.tar.xz
samba-ccc06f84415a0496b8f3771e8888f81442acd808.zip
r22022: - Clarify the comments
- make sure never to free an uninitialised variable - ensure to free result on getpwnam_alloc failure Andrew Bartlett (This used to be commit 5fe3328e66661371182cc1c3b6e239797c3b4f93)
Diffstat (limited to 'source3/auth/auth_sam.c')
-rw-r--r--source3/auth/auth_sam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index 31178a761ce..0fa68cbb87a 100644
--- a/source3/auth/auth_sam.c
+++ b/source3/auth/auth_sam.c
@@ -263,8 +263,8 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
return NT_STATUS_UNSUCCESSFUL;
}
- /* Can't use the talloc version here, because the returned struct gets
- kept on the server_info */
+ /* the returned struct gets kept on the server_info, by means
+ of a steal further down */
if ( !(sampass = samu_new( mem_ctx )) ) {
return NT_STATUS_NO_MEMORY;