Since lp_bind_address() can't return NULL, we need to check if it is

an empty string and ignore it when it is.
This commit is contained in:
Wayne Davison committed 2004-12-31 09:41:04 +00:00
1 parent 43bab4035b
commit 3dfe6e97a7
1 file changed
+1 -1
+1 -1
View 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();