From: Alexander Bokovoy Date: Wed, 22 Oct 2003 15:52:36 +0000 (+0000) Subject: Fix segfault in mount.cifs helper when there is no options specified during mount X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba.git;a=commitdiff_plain;h=356e0437674d369ab90001910e257bfaf11cafe6 Fix segfault in mount.cifs helper when there is no options specified during mount (This used to be commit a3b67626018ade2a823311b65202ab7f488ca0a7) --- diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c index 7ab17a2b028..43b20e9d502 100755 --- a/source3/client/mount.cifs.c +++ b/source3/client/mount.cifs.c @@ -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)