From 6a13107da7b1563b3bdccd66c2d7c369db7c2bb4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 25 Nov 2009 09:58:45 -0800 Subject: [PATCH] Fix crash due to uninitialized pointer (not a problem in 3.4.x or below). Jeremy. (cherry picked from commit 947c47f2819ff30d3c69bfbeb4b1932467b36cce) --- source3/smbd/open.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 420b41cd04b..72f6a008183 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -71,7 +71,7 @@ NTSTATUS smbd_check_open_rights(struct connection_struct *conn, { /* Check if we have rights to open. */ NTSTATUS status; - struct security_descriptor *sd; + struct security_descriptor *sd = NULL; *access_granted = 0; @@ -94,7 +94,6 @@ NTSTATUS smbd_check_open_rights(struct connection_struct *conn, "on %s: %s\n", smb_fname_str_dbg(smb_fname), nt_errstr(status))); - TALLOC_FREE(sd); return status; } -- 2.11.4.GIT