summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-02-26 20:14:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:11 -0500
commit28e2069d1f066f20b376d911d6ed582a76c4a713 (patch)
tree02c77d5f5e4104287c8becf1ff7531c99079f804 /source3/smbd
parente7d6c7b1514fe8f4b6b9748b4d6f43e7c9cd1aa1 (diff)
downloadsamba-28e2069d1f066f20b376d911d6ed582a76c4a713.tar.gz
samba-28e2069d1f066f20b376d911d6ed582a76c4a713.tar.bz2
samba-28e2069d1f066f20b376d911d6ed582a76c4a713.zip
r21547: Fix from Michael Adam <ma@sernet.de>: Refuse registry shares without path.
Thanks, Volker (This used to be commit e795865d58472498097edc3fb68438ed08c38d8d)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/service.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index de2bfd9100..c96bcea4e2 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -313,6 +313,14 @@ static int load_registry_service(const char *servicename)
TALLOC_FREE(value);
}
+ if (!service_ok(res)) {
+ /* this is actually never reached, since
+ * service_ok only returns False if the service
+ * entry does not have a service name, and we _know_
+ * we do have a service name here... */
+ res = -1;
+ }
+
error:
TALLOC_FREE(key);