[Pkg-samba-maint] [samba] 05/17: s3: smbd: OpenDir_fsp() - Fix memory leak on error.

Mathieu Parent sathieu at moszumanska.debian.org
Thu Mar 23 19:02:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

sathieu pushed a commit to branch master
in repository samba.

commit bc469c97cb0876692d22262a02cc6662b8bb97ae
Author: Jeremy Allison <jra at samba.org>
Date:   Mon Dec 19 12:15:59 2016 -0800

    s3: smbd: OpenDir_fsp() - Fix memory leak on error.
    
    CVE-2017-2619
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=12496
    
    Signed-off-by: Jeremy Allison <jra at samba.org>
---
 source3/smbd/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 12edf80..42e787b 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;
 		}
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git




More information about the Pkg-samba-maint mailing list