From cdc280deb1e6f99ec9eae05d75bc1104448662ef 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 --- 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 3253f9d..202000f 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; } -- 1.8.1.2