From: Wayne Davison Date: Fri, 31 Dec 2004 09:41:04 +0000 (+0000) Subject: Since lp_bind_address() can't return NULL, we need to check if it is X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/3dfe6e97a7e98c418479f5f0671f19c87f762697 Since lp_bind_address() can't return NULL, we need to check if it is an empty string and ignore it when it is. --- 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();