summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-11-25 09:58:45 -0800
committerJeremy Allison <jra@samba.org>2009-11-25 09:58:45 -0800
commit947c47f2819ff30d3c69bfbeb4b1932467b36cce (patch)
treeb47562eb193403f0b2fec86cf70bd71b5a188355 /source3/smbd
parent51864219cc12ceb66c281355f3e1191d5e32842d (diff)
downloadsamba-947c47f2819ff30d3c69bfbeb4b1932467b36cce.tar.gz
samba-947c47f2819ff30d3c69bfbeb4b1932467b36cce.tar.bz2
samba-947c47f2819ff30d3c69bfbeb4b1932467b36cce.zip
Fix crash due to uninitialized pointer (not a problem in 3.4.x or below).
Jeremy.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 420b41cd04..72f6a00818 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;
}