]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Use tevent_req_nterror()'s retval
authorVolker Lendecke <vl@samba.org>
Sat, 17 Sep 2022 17:24:08 +0000 (10:24 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 19 Sep 2022 17:23:31 +0000 (17:23 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cli_smb2_fnum.c
source3/libsmb/clioplock.c

index bd3d705a641abea7ea5cfaddce3b36417ee3b2d2..b2ad1050814de35858fdef400df99bff64a5f63d 100644 (file)
@@ -271,8 +271,7 @@ struct tevent_req *cli_smb2_create_fnum_send(
                        &state->in_cblobs,
                        SMB2_CREATE_TAG_TWRP,
                        twrp_blob);
-               if (!NT_STATUS_IS_OK(status)) {
-                       tevent_req_nterror(req, status);
+               if (tevent_req_nterror(req, status)) {
                        return tevent_req_post(req, ev);
                }
        }
index 01c98f1c3025591e8fb80146aecffc6dec3c0961..fcef01f8d83ae83def43e53e5176191e8d02a86f 100644 (file)
@@ -85,8 +85,7 @@ static void cli_smb_oplock_break_waiter_done(struct tevent_req *subreq)
                                  NULL, /* pinbuf */
                                  NULL, 0); /* expected */
        TALLOC_FREE(subreq);
-       if (!NT_STATUS_IS_OK(status)) {
-               tevent_req_nterror(req, status);
+       if (tevent_req_nterror(req, status)) {
                return;
        }
        if (wct < 8) {