diff options
author | Michael Adam <obnox@samba.org> | 2008-04-15 17:37:39 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-15 17:40:28 +0200 |
commit | be504b9d32e970428175a0cba8fdcceb4369721f (patch) | |
tree | 07985c01882eeecf34f10d939757ae889d66bb58 /source3/lib/smbconf | |
parent | ed85ea4248688005d1769894f0b2f2e86d822fde (diff) | |
download | samba-be504b9d32e970428175a0cba8fdcceb4369721f.tar.gz samba-be504b9d32e970428175a0cba8fdcceb4369721f.tar.bz2 samba-be504b9d32e970428175a0cba8fdcceb4369721f.zip |
libsmbconf: don't complain with WERR_ALREADY_EXISTS for NULL share in smbconf_create_share().
These are values stored inside the base key for registry.
This is not getting deleted.
Michael
(This used to be commit aa167de8252bb615bd21fb3fd9468383b8357d32)
Diffstat (limited to 'source3/lib/smbconf')
-rw-r--r-- | source3/lib/smbconf/smbconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbconf/smbconf.c b/source3/lib/smbconf/smbconf.c index 0359e000d3..9565540df4 100644 --- a/source3/lib/smbconf/smbconf.c +++ b/source3/lib/smbconf/smbconf.c @@ -192,7 +192,7 @@ bool smbconf_share_exists(struct smbconf_ctx *ctx, WERROR smbconf_create_share(struct smbconf_ctx *ctx, const char *servicename) { - if (smbconf_share_exists(ctx, servicename)) { + if ((servicename != NULL) && smbconf_share_exists(ctx, servicename)) { return WERR_ALREADY_EXISTS; } |