diff options
author | Jeremy Allison <jra@samba.org> | 2016-12-19 12:15:59 -0800 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2017-03-22 10:48:06 +0100 |
commit | 7e915c87a76e4eedcd2abcf84bbdb806e3232976 (patch) | |
tree | 6987d612aa5e2415ed6cc144dcd5dcbc66c998f6 | |
parent | 5e75a5289c1a6bbb72ce6d82a6cf12e8ad2b5b24 (diff) | |
download | samba-7e915c87a76e4eedcd2abcf84bbdb806e3232976.tar.gz |
CVE-2017-2619: s3: smbd: OpenDir_fsp() - Fix memory leak on error.
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>
-rw-r--r-- | source3/smbd/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 12edf80ee02..42e787bed6c 100644 --- 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; } } |