]> andersk Git - moira.git/commitdiff
Check that machines are in the valid range for their subnet
authordanw <danw>
Sun, 8 Feb 1998 17:34:51 +0000 (17:34 +0000)
committerdanw <danw>
Sun, 8 Feb 1998 17:34:51 +0000 (17:34 +0000)
server/qsetup.pc

index b4f8c50eb03790a61673c8b9d739f00d9f305a35..a6bda5b14f74331d1cbef7668d8a321c30fddfa4 100644 (file)
@@ -979,7 +979,7 @@ int setup_ahst(struct query *q, char **argv, client *cl)
          /*
           * someone specified an IP address for the host record
           */
-         if ((value & mask) != saddr)
+         if ((value & mask) != saddr || value < low || value > high)
            return MR_ADDRESS;
          /*
           * run the address argument through inet_addr(). This
This page took 0.097479 seconds and 5 git commands to generate.