]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Remove a redundant tevent_req_nterror()
authorVolker Lendecke <vl@samba.org>
Mon, 5 May 2025 12:02:39 +0000 (14:02 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 15 May 2025 14:03:34 +0000 (14:03 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/libsmb/cli_smb2_fnum.c
source3/libsmb/libsmb_server.c

index 06599004f39a8e1270d63d5d0854c750d730d439..f09e97a92e9db9fd12e7c73bfe31cda8a4d40d81 100644 (file)
@@ -1556,7 +1556,6 @@ struct tevent_req *cli_smb2_list_send(
                status = smb2_create_blob_add(in_cblobs, in_cblobs,
                                              SMB2_CREATE_TAG_POSIX, blob);
                if (tevent_req_nterror(req, status)) {
-                       tevent_req_nterror(req, status);
                        return tevent_req_post(req, ev);
                }
        }
index c7516639fa3aea29da3a9c499d6980e78e0341d2..6454e58519c4c264658b7b11e6c3be4879bc3fdd 100644 (file)
@@ -76,10 +76,8 @@ SMBC_check_server(SMBCCTX * context,
         * replied.
         * BUG: https://bugzilla.samba.org/show_bug.cgi?id=13218
         */
-       if (smbXcli_conn_protocol(cli->conn) >=
-           PROTOCOL_SMB2_02) {
-               if (NT_STATUS_EQUAL(status,
-                                   NT_STATUS_USER_SESSION_DELETED)) {
+       if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
+               if (NT_STATUS_EQUAL(status, NT_STATUS_USER_SESSION_DELETED)) {
                        ok = true;
                }
        }
@@ -89,8 +87,7 @@ SMBC_check_server(SMBCCTX * context,
         * replied.
         * BUG: https://bugzilla.samba.org/show_bug.cgi?id=13007
         */
-       if (NT_STATUS_EQUAL(status,
-                           NT_STATUS_INVALID_PARAMETER)) {
+       if (NT_STATUS_EQUAL(status, NT_STATUS_INVALID_PARAMETER)) {
                ok = true;
        }
        if (!ok) {