diff options
-rw-r--r-- | source3/libsmb/cli_smb2_fnum.c | 4 |
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; } |