]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Use tevent_req_nterror() properly
authorVolker Lendecke <vl@samba.org>
Fri, 20 Jun 2025 15:21:49 +0000 (17:21 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 2 Sep 2025 08:08:29 +0000 (08:08 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
libcli/smb/smb1cli_echo.c

index 10dff2d8c9b507a3d40be3b7c3a626802c6ce674..a9f6e7f9ae8fe8e5fe078f55aa6ba3ea76ffcb05 100644 (file)
@@ -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;
        }