summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-04-18 13:28:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:05 -0500
commit0fe8434b3b4fa0c7c56a6f2e04d3257cd4227e74 (patch)
treed600e3416a100f4b143b4a81a146149d5cfdbb3d /source4/param
parentcef04ba64f872c8d408dfcb952839139aee9c4b1 (diff)
downloadsamba-0fe8434b3b4fa0c7c56a6f2e04d3257cd4227e74.tar.gz
samba-0fe8434b3b4fa0c7c56a6f2e04d3257cd4227e74.tar.bz2
samba-0fe8434b3b4fa0c7c56a6f2e04d3257cd4227e74.zip
r22336: Add some more share tests.
(This used to be commit dfc88ad698644fe90f0275c457e7b84ddde302a4)
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/share_ldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/param/share_ldb.c b/source4/param/share_ldb.c
index 451d003a0d..2d865588a9 100644
--- a/source4/param/share_ldb.c
+++ b/source4/param/share_ldb.c
@@ -289,7 +289,7 @@ NTSTATUS sldb_create(struct share_context *ctx, const char *name, struct share_i
NTSTATUS ret;
int err, i, j;
- for (i = 0, j = 0; i < count || j != 0x03; i++) {
+ for (i = 0, j = 0; i < count && j != 0x03; i++) {
if (strcasecmp(info[i].name, SHARE_TYPE) == 0) j |= 0x02;
if (strcasecmp(info[i].name, SHARE_PATH) == 0) j |= 0x01;
if (strcasecmp(info[i].name, SHARE_NAME) == 0) {