r1910: this should not be a local var in this block
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Aug 2004 11:37:36 +0000 (11:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:58:10 +0000 (12:58 -0500)
metze
(This used to be commit 0164cac6df46ca5996aae30b8c48a602999f7e0b)

source4/libcli/raw/clisocket.c

index b09bebf133477e1c4ce0c9dde2cbc70d0c29fd13..343904999a4d58b793b1620d14c55cba7e2f20fc 100644 (file)
@@ -65,7 +65,7 @@ BOOL smbcli_sock_connect(struct smbcli_socket *sock, struct in_addr *ip, int por
                int i;
                const char **ports = lp_smb_ports();
                for (i=0;ports[i];i++) {
-                       int port = atoi(ports[i]);
+                       port = atoi(ports[i]);
                        if (port != 0 && smbcli_sock_connect(sock, ip, port)) {
                                return True;
                        }