fixed default port handling pointed out by Tom Jansen
authorAndrew Tridgell <tridge@samba.org>
Wed, 26 Nov 2003 21:57:29 +0000 (21:57 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 26 Nov 2003 21:57:29 +0000 (21:57 +0000)
(This used to be commit 8246e6ca0bd0eaa92de602db46a119d368e93391)

source4/libcli/raw/clisocket.c

index 6ccdeef3667419378f8d5ffea2e2acd9207ab1bb..f596cba8548970b4de983a6fb947d2776ea98164 100644 (file)
@@ -41,7 +41,7 @@ struct cli_socket *cli_sock_init(void)
 
        sock->mem_ctx = mem_ctx;
        sock->fd = -1;
-       sock->port = 445;
+       sock->port = 0;
        /* 20 second default timeout */
        sock->timeout = 20000;