]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Slightly simplify get_ipc_connect()
authorVolker Lendecke <vl@samba.org>
Mon, 13 Apr 2020 07:23:45 +0000 (09:23 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 18 Apr 2020 02:29:34 +0000 (02:29 +0000)
No else required with an early return

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cliconnect.c

index b87287fa24d7ff0853d430553fc954fb90b8c715..23b2bd2bdf7a14482d5589da7e81ff85f0eda29f 100644 (file)
@@ -3799,7 +3799,8 @@ struct cli_state *get_ipc_connect(char *server,
 
        if (NT_STATUS_IS_OK(nt_status)) {
                return cli;
-       } else if (is_ipaddress(server)) {
+       }
+       if (is_ipaddress(server)) {
            /* windows 9* needs a correct NMB name for connections */
            fstring remote_name;