]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Avoid an "else"
authorVolker Lendecke <vl@samba.org>
Thu, 8 May 2025 16:00:34 +0000 (18:00 +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/clidfs.c

index 129a0a66ba67850b46af5a6984f036063ec83e13..cafb1b421a6076d86d181010afd8f71b313457f1 100644 (file)
@@ -235,7 +235,9 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx,
                         smbXcli_conn_remote_name(c->conn));
                cli_shutdown(c);
                return status;
-       } else if (!NT_STATUS_IS_OK(status)) {
+       }
+
+       if (!NT_STATUS_IS_OK(status)) {
                d_printf("Protocol negotiation to server %s (for a protocol between %s and %s) failed: %s\n",
                         smbXcli_conn_remote_name(c->conn),
                         lpcfg_get_smb_protocol(lp_client_min_protocol()),