From 780f121462b91c520c5a1bd13e7fcde288e1fad2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 12 Jun 2006 11:03:49 +0000 Subject: r16150: Fix possible NULL dereference found by Klocwork ID # 17 (This used to be commit 3159bd3a4e3ad70c60fea4cacc892be9f1d71ab9) --- source3/auth/auth_util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/auth/auth_util.c') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index d02ad66200..43ae5c1af6 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -1243,10 +1243,9 @@ NTSTATUS make_server_info_pw(auth_serversupplied_info **server_info, } result = make_server_info(NULL); - - if (!NT_STATUS_IS_OK(status)) { + if (result == NULL) { TALLOC_FREE(sampass); - return status; + return NT_STATUS_NO_MEMORY; } result->sam_account = sampass; -- cgit