r4439: unlimited connections is -1
[samba.git] / source4 / param / loadparm.c
index 17769c5965121815bed9e3e0d901d37d2878beab..8e535c09005f10da8d0ff69619fc4bd2202f16a0 100644 (file)
@@ -1669,7 +1669,7 @@ static BOOL lp_add_hidden(const char *name, const char *fstype, BOOL guest_ok)
        string_set(&ServicePtrs[i]->szUsername, "");
        string_set(&ServicePtrs[i]->comment, comment);
        string_set(&ServicePtrs[i]->fstype, fstype);
-       ServicePtrs[i]->iMaxConnections = 0;
+       ServicePtrs[i]->iMaxConnections = -1;
        ServicePtrs[i]->bAvailable = True;
        ServicePtrs[i]->bRead_only = True;
        ServicePtrs[i]->bGuest_only = False;