From: Volker Lendecke Date: Sat, 21 Jun 2008 14:39:05 +0000 (+0200) Subject: Fix a double-closedir() in form_junctions() X-Git-Tag: samba-3.3.0pre1~823 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d7ad0dea7ebf7a46af6e695797e5132264307d6;p=thirdparty%2Fsamba.git Fix a double-closedir() in form_junctions() --- diff --git a/source/smbd/msdfs.c b/source/smbd/msdfs.c index de57d8def26..25b22f4cc04 100644 --- a/source/smbd/msdfs.c +++ b/source/smbd/msdfs.c @@ -1541,7 +1541,6 @@ static int form_junctions(TALLOC_CTX *ctx, while ((dname = vfs_readdirname(conn, dirp)) != NULL) { char *link_target = NULL; if (cnt >= jn_remain) { - SMB_VFS_CLOSEDIR(conn,dirp); DEBUG(2, ("form_junctions: ran out of MSDFS " "junction slots")); goto out;