If max-connections is < 0, disable the module.
authorWayne Davison <wayned@samba.org>
Tue, 18 Sep 2007 14:14:22 +0000 (14:14 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 18 Sep 2007 14:14:22 +0000 (14:14 +0000)
connection.c

index 5e37fe2..6281861 100644 (file)
@@ -26,7 +26,7 @@ int claim_connection(char *fname, int max_connections)
 {
        int fd, i;
 
-       if (max_connections <= 0)
+       if (max_connections == 0)
                return 1;
 
        if ((fd = open(fname, O_RDWR|O_CREAT, 0600)) < 0)