]> andersk Git - moira.git/commitdiff
Special case 0.0.0.0 and 255.255.255.255 in setup_asnt().
authorzacheiss <zacheiss>
Tue, 21 Aug 2001 03:56:15 +0000 (03:56 +0000)
committerzacheiss <zacheiss>
Tue, 21 Aug 2001 03:56:15 +0000 (03:56 +0000)
server/qsetup.pc

index 3c683c99fef27313a6ce74c75c6ede59ed44b9ce..173fbda6e21b5d6bfa147dbdb637d1f1cd875e0a 100644 (file)
@@ -247,8 +247,10 @@ int setup_asnt(struct query *q, char *argv[], client *cl)
   low = atoi(argv[row + 5]);
   high = atoi(argv[row + 6]);
 
-  if (low > high)
-    return MR_ADDRESS;
+  /* Special case 0.0.0.0 and 255.255.255.255 */
+  if (!(low == 0 || low == -1 || high == 0 || high == -1))
+    if (low > high)
+      return MR_ADDRESS;
 
   /* If this is update_subnet, we're done. */
   if (row == 1)
This page took 0.193996 seconds and 5 git commands to generate.