From: Volker Lendecke Date: Wed, 20 Aug 2025 16:23:50 +0000 (+0200) Subject: libsmb: Avoid an "else" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=683e25787c54b72efdea77e6cb9d92e897ca68b7;p=thirdparty%2Fsamba.git libsmb: Avoid an "else" We return in the if-branch Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index aa9a30c37cc..c7c22c18810 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -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));