syslog support in rsync daemon has been broken since I added the "log
[rsync/rsync.git] / clientserver.c
index debc4fe..f7293bf 100644 (file)
@@ -353,7 +353,7 @@ static int start_daemon(int fd)
        io_printf(fd,"@RSYNCD: %d\n", PROTOCOL_VERSION);
 
        motd = lp_motd_file();
-       if (*motd) {
+       if (motd && *motd) {
                FILE *f = fopen(motd,"r");
                while (f && !feof(f)) {
                        int len = fread(line, 1, sizeof(line)-1, f);