From: Volker Lendecke Date: Sat, 17 Sep 2022 17:24:08 +0000 (-0700) Subject: libsmb: Use tevent_req_nterror()'s retval X-Git-Tag: talloc-2.4.0~941 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68d20326db8a2bf6296e6efc5f2ab831db3a1521;p=thirdparty%2Fsamba.git libsmb: Use tevent_req_nterror()'s retval Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c index bd3d705a641..b2ad1050814 100644 --- a/source3/libsmb/cli_smb2_fnum.c +++ b/source3/libsmb/cli_smb2_fnum.c @@ -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); } } diff --git a/source3/libsmb/clioplock.c b/source3/libsmb/clioplock.c index 01c98f1c302..fcef01f8d83 100644 --- a/source3/libsmb/clioplock.c +++ b/source3/libsmb/clioplock.c @@ -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) {