From: Ralph Boehme Date: Tue, 28 Apr 2020 06:04:41 +0000 (+0200) Subject: smbd: add missing done check from unix_convert_step_stat() refactoring X-Git-Tag: ldb-2.2.0~853 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f55b662a361e80409e568c04710a51fdef26b2a;p=thirdparty%2Fsamba.git smbd: add missing done check from unix_convert_step_stat() refactoring Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index f45a45c8c7f..7ed59794767 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -841,6 +841,9 @@ static NTSTATUS unix_convert_step(struct uc_state *state) if (!NT_STATUS_IS_OK(status)) { return status; } + if (state->done) { + return NT_STATUS_OK; + } /* * Add to the dirpath that we have resolved so far.