From b5fcb34d6cd20c852208d2b8b785b2870c6d65db Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 30 Dec 2009 12:46:22 +0100 Subject: s3:check_sam_security: untangle assignment from statement Michael --- source3/auth/auth_sam.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/auth') diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c index f0500b3611..942f9ca6c4 100644 --- a/source3/auth/auth_sam.c +++ b/source3/auth/auth_sam.c @@ -305,7 +305,8 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context, /* the returned struct gets kept on the server_info, by means of a steal further down */ - if ( !(sampass = samu_new( mem_ctx )) ) { + sampass = samu_new(mem_ctx); + if (sampass == NULL) { return NT_STATUS_NO_MEMORY; } -- cgit