diff options
author | Michael Adam <obnox@samba.org> | 2008-03-20 11:52:13 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-21 02:25:56 +0100 |
commit | fbd2c552eaf88604bf91899355c024fc5a4d95b6 (patch) | |
tree | 45bce6bf0f9cce3d4cc421595f0638dd7d67967c | |
parent | 4c7214aae2354b737ceadc255ebff7643036cc17 (diff) | |
download | samba-fbd2c552eaf88604bf91899355c024fc5a4d95b6.tar.gz samba-fbd2c552eaf88604bf91899355c024fc5a4d95b6.tar.bz2 samba-fbd2c552eaf88604bf91899355c024fc5a4d95b6.zip |
libsmbconf: add check for NULL servicename to smbconf_share_exists().
Michael
(This used to be commit 5dac66c82af8c87df723092a9309304846684418)
-rw-r--r-- | source3/lib/smbconf/smbconf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/smbconf/smbconf.c b/source3/lib/smbconf/smbconf.c index a6b986bc4d..d1351843f0 100644 --- a/source3/lib/smbconf/smbconf.c +++ b/source3/lib/smbconf/smbconf.c @@ -937,6 +937,9 @@ WERROR smbconf_get_share_names(struct smbconf_ctx *ctx, bool smbconf_share_exists(struct smbconf_ctx *ctx, const char *servicename) { + if (servicename == NULL) { + return false; + } return smbconf_reg_share_exists(ctx, servicename); } |