]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Avoid an "else"
authorVolker Lendecke <vl@samba.org>
Wed, 20 Aug 2025 16:23:50 +0000 (18:23 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 2 Sep 2025 08:08:29 +0000 (08:08 +0000)
We return in the if-branch

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/libsmb/cliconnect.c

index aa9a30c37cc0052e725281ab7ea93d4eda2bcab9..c7c22c18810794f8cc7a6bbf766b8eb319ec8c6f 100644 (file)
@@ -3445,7 +3445,9 @@ static void cli_full_connection_creds_enc_start(struct tevent_req *req)
                                "SMB3 encryption - failing connect\n");
                        tevent_req_nterror(req, status);
                        return;
-               } else if (!NT_STATUS_IS_OK(status)) {
+               }
+
+               if (!NT_STATUS_IS_OK(status)) {
                        d_printf("Encryption required and "
                                "setup failed with error %s.\n",
                                nt_errstr(status));