From 3dfe6e97a7e98c418479f5f0671f19c87f762697 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 31 Dec 2004 09:41:04 +0000 Subject: [PATCH] Since lp_bind_address() can't return NULL, we need to check if it is an empty string and ignore it when it is. --- clientserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientserver.c b/clientserver.c index ab6a3267..ec74054f 100644 --- a/clientserver.c +++ b/clientserver.c @@ -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(); -- 2.34.1