summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1999-01-08 23:19:36 +0000
committerAndrew Tridgell <tridge@samba.org>1999-01-08 23:19:36 +0000
commit324defdd4add6e96eb0fa0abd6955949bca3fa24 (patch)
tree1ab4b2ad303fb45935bb96f1af2dc8048904ec2e
parent819645d7193878e013f3037c837fd1fc2cc3ae18 (diff)
downloadsamba-324defdd4add6e96eb0fa0abd6955949bca3fa24.tar.gz
samba-324defdd4add6e96eb0fa0abd6955949bca3fa24.tar.xz
samba-324defdd4add6e96eb0fa0abd6955949bca3fa24.zip
handle null path in smbw_path()
-rw-r--r--source/smbwrapper/smbw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c
index b8071b45a0b..f8ac6f1d0f2 100644
--- a/source/smbwrapper/smbw.c
+++ b/source/smbwrapper/smbw.c
@@ -346,7 +346,7 @@ int smbw_path(const char *path)
/* this is needed to prevent recursion with the BSD malloc which
opens /etc/malloc.conf on the first call */
- if (strncmp(path,"/etc/", 5) == 0) {
+ if (!path || strncmp(path,"/etc/", 5) == 0) {
return 0;
}