Since lp_bind_address() can't return NULL, we need to check if it is
authorWayne Davison <wayned@samba.org>
Fri, 31 Dec 2004 09:41:04 +0000 (09:41 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 31 Dec 2004 09:41:04 +0000 (09:41 +0000)
an empty string and ignore it when it is.

clientserver.c

index ab6a326..ec74054 100644 (file)
@@ -607,7 +607,7 @@ int daemon_main(void)
 
        if (rsync_port == 0 && (rsync_port = lp_rsync_port()) == 0)
                rsync_port = RSYNC_PORT;
-       if (bind_address == NULL)
+       if (bind_address == NULL && *lp_bind_address())
                bind_address = lp_bind_address();
 
        log_init();