s3: delete_streams: Don't jump to fail: - that resets state.
authorJeremy Allison <jra@samba.org>
Thu, 29 Sep 2016 19:44:17 +0000 (12:44 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 2 Jan 2017 10:56:51 +0000 (11:56 +0100)
Signed-off-by: Jeremy Allison <jra@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12299

source3/smbd/close.c

index 9d164dae81645cf9c83c85c9856644be09193708..1cb160140a7998401c4672c41ed5cc924a71ee65 100644 (file)
@@ -182,7 +182,8 @@ NTSTATUS delete_all_streams(connection_struct *conn, const char *fname)
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(10, ("vfs_streaminfo failed: %s\n",
                           nt_errstr(status)));
-               goto fail;
+               TALLOC_FREE(frame);
+               return status;
        }
 
        DEBUG(10, ("delete_all_streams found %d streams\n",