Clinet address masks may certainly be 0 bits long.
authorcmiller <cmiller>
Wed, 19 Feb 2003 15:19:57 +0000 (15:19 +0000)
committercmiller <cmiller>
Wed, 19 Feb 2003 15:19:57 +0000 (15:19 +0000)
src/main/client.c

index 6d82ca0..3a88346 100644 (file)
@@ -126,7 +126,7 @@ int read_clients_file(const char *file)
                        p++;
 
                        mask_length = atoi(p);
-                       if ((mask_length <= 0) || (mask_length > 32)) {
+                       if ((mask_length < 0) || (mask_length > 32)) {
                                radlog(L_ERR, "%s[%d]: Invalid value '%s' for IP network mask.",
                                                file, lineno, p);
                                return -1;