Fix segfault in mount.cifs helper when there is no options specified during mount
authorAlexander Bokovoy <ab@samba.org>
Wed, 22 Oct 2003 15:41:08 +0000 (15:41 +0000)
committerAlexander Bokovoy <ab@samba.org>
Wed, 22 Oct 2003 15:41:08 +0000 (15:41 +0000)
source/client/mount.cifs.c

index 7ab17a2b0284845fb8968098f7122732a10921b3..43b20e9d502cdbd00002065acfeb62a5c752ea1a 100755 (executable)
@@ -501,7 +501,7 @@ int main(int argc, char ** argv)
        ipaddr = parse_server(share_name);
 /*     if(share_name == NULL)
                return 1; */
-       if (parse_options(strdup(orgoptions)))
+       if (orgoptions && parse_options(strdup(orgoptions)))
                return 1;
 
        if(got_user == 0)