X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e22de16264d3c5a05b3869692af52b1ccdf3aa80..08ac228fbd0be74bfb65d1d3f98f7901eda129ba:/socket.c diff --git a/socket.c b/socket.c index 27260a1b..3c876ed0 100644 --- 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");