summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-10-22 15:41:08 +0000
committerAlexander Bokovoy <ab@samba.org>2003-10-22 15:41:08 +0000
commit3531647574ba61ce69969c501fbc82937a4d4dfa (patch)
tree32af6a156076a8ebea2c722d790114ef92ed997b /source3
parent57c1a70451a4da422a3846b6082e313cc9367e4c (diff)
downloadsamba-3531647574ba61ce69969c501fbc82937a4d4dfa.tar.gz
samba-3531647574ba61ce69969c501fbc82937a4d4dfa.tar.bz2
samba-3531647574ba61ce69969c501fbc82937a4d4dfa.zip
Fix segfault in mount.cifs helper when there is no options specified during mount
(This used to be commit fb87388a9fe959ecb01d88e2f974b077bac0a34d)
Diffstat (limited to 'source3')
-rwxr-xr-xsource3/client/mount.cifs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c
index 7ab17a2b02..43b20e9d50 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)