summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-09-17 11:00:16 -0700
committerJeremy Allison <jra@samba.org>2013-09-17 11:04:58 -0700
commitcdc280deb1e6f99ec9eae05d75bc1104448662ef (patch)
tree0908d42c72d3636b1bbd053c7daff13255a12775
parenteaf1b8e2e3edd4e223d595bb3b091b4bcbdc2b04 (diff)
downloadsamba-cdc280deb1e6f99ec9eae05d75bc1104448662ef.tar.gz
samba-cdc280deb1e6f99ec9eae05d75bc1104448662ef.tar.bz2
samba-cdc280deb1e6f99ec9eae05d75bc1104448662ef.zip
s3: libsmb SMB2 wrapper layer. cli_smb2_get_ea_list_path() failed to close file on exit.
Found at SNIA SDC plugfest. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
-rw-r--r--source3/libsmb/cli_smb2_fnum.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c
index 3253f9df9c..202000fbbf 100644
--- a/source3/libsmb/cli_smb2_fnum.c
+++ b/source3/libsmb/cli_smb2_fnum.c
@@ -1997,6 +1997,10 @@ NTSTATUS cli_smb2_get_ea_list_path(struct cli_state *cli,
fail:
+ if (fnum != 0xffff) {
+ cli_smb2_close_fnum(cli, fnum);
+ }
+
TALLOC_FREE(frame);
return status;
}