summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-10-22 15:52:36 +0000
committerAlexander Bokovoy <ab@samba.org>2003-10-22 15:52:36 +0000
commit356e0437674d369ab90001910e257bfaf11cafe6 (patch)
treed9c74a67166c7c1d519e6ab9e9462d12f5957c5f
parent2fef82e5df4f4e85cc21734189b54b7be15f42cd (diff)
downloadsamba-356e0437674d369ab90001910e257bfaf11cafe6.tar.gz
samba-356e0437674d369ab90001910e257bfaf11cafe6.tar.bz2
samba-356e0437674d369ab90001910e257bfaf11cafe6.zip
Fix segfault in mount.cifs helper when there is no options specified during mount
(This used to be commit a3b67626018ade2a823311b65202ab7f488ca0a7)
-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)