diff options
Diffstat (limited to 'source4/param/share_ldb.c')
-rw-r--r-- | source4/param/share_ldb.c | 2 |
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) { |