From 4e5e7e4ee03475e2e648f4401a2a6beaa941c682 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 17 Sep 2013 11:00:16 -0700 Subject: [PATCH] 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 Reviewed-by: Volker Lendecke (cherry picked from commit cdc280deb1e6f99ec9eae05d75bc1104448662ef) Fix bug #10149 - cli_smb2_get_ea_list_path() failed to close file on exit. --- source3/libsmb/cli_smb2_fnum.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c index 3253f9df9c6..202000fbbf5 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; } -- 2.11.4.GIT