git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86f1523
)
CVE-2017-2619: s3: smbd: OpenDir_fsp() - Fix memory leak on error.
author
Jeremy Allison
<jra@samba.org>
Mon, 19 Dec 2016 20:15:59 +0000
(12:15 -0800)
committer
Karolin Seeger
<kseeger@samba.org>
Thu, 23 Mar 2017 18:10:19 +0000
(19:10 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12496
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/smbd/dir.c
patch
|
blob
|
history
diff --git
a/source3/smbd/dir.c
b/source3/smbd/dir.c
index 12edf80ee0290805539009368cd5d7ce72ceea2c..42e787bed6cd0d543c73df66d5fe52a04092a282 100644
(file)
--- a/
source3/smbd/dir.c
+++ b/
source3/smbd/dir.c
@@
-1797,7
+1797,7
@@
static struct smb_Dir *OpenDir_fsp(TALLOC_CTX *mem_ctx, connection_struct *conn,
dirp->dir_smb_fname->base_name,
strerror(errno)));
if (errno != ENOSYS) {
-
return NULL
;
+
goto fail
;
}
}