added a "socket options" option to rsyncd.conf. This option will
[rsync/rsync.git] / socket.c
index 27260a1..3c876ed 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -216,6 +216,8 @@ set user socket options
 void set_socket_options(int fd, char *options)
 {
        char *tok;
+       if (!options || !*options) return;
+
        options = strdup(options);
        
        if (!options) out_of_memory("set_socket_options");