From: Jeremy Allison Date: Thu, 29 Sep 2016 19:44:17 +0000 (-0700) Subject: s3: delete_streams: Don't jump to fail: - that resets state. X-Git-Tag: samba-4.4.9~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76c37961207dbe5f83b6b3ed0e3edb1142919d64;p=thirdparty%2Fsamba.git s3: delete_streams: Don't jump to fail: - that resets state. Signed-off-by: Jeremy Allison BUG: https://bugzilla.samba.org/show_bug.cgi?id=12299 --- diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 9d164dae816..1cb160140a7 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -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",