diff options
-rw-r--r-- | source3/smbd/smb2_find.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/smb2_find.c b/source3/smbd/smb2_find.c index 481dcb9826c..6bc44a51450 100644 --- a/source3/smbd/smb2_find.c +++ b/source3/smbd/smb2_find.c @@ -358,8 +358,7 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx, TALLOC_FREE(to_free); - if (!NT_STATUS_IS_OK(status)) { - tevent_req_nterror(req, status); + if (tevent_req_nterror(req, status)) { return tevent_req_post(req, ev); } |