From: Volker Lendecke Date: Fri, 20 Jun 2025 15:21:49 +0000 (+0200) Subject: libsmb: Use tevent_req_nterror() properly X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34f7e4325341080702e2993375b849d40dc5a7e0;p=thirdparty%2Fsamba.git libsmb: Use tevent_req_nterror() properly Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/libcli/smb/smb1cli_echo.c b/libcli/smb/smb1cli_echo.c index 10dff2d8c9b..a9f6e7f9ae8 100644 --- a/libcli/smb/smb1cli_echo.c +++ b/libcli/smb/smb1cli_echo.c @@ -96,8 +96,7 @@ static void smb1cli_echo_done(struct tevent_req *subreq) NULL, /* pbytes_offset */ NULL, /* pinbuf */ expected, ARRAY_SIZE(expected)); - if (!NT_STATUS_IS_OK(status)) { - tevent_req_nterror(req, status); + if (tevent_req_nterror(req, status)) { return; }