Author: ae
Date: Sun Dec 24 01:55:12 2017
New Revision: 327140
URL: https://svnweb.freebsd.org/changeset/base/327140

Log:
  Fix rule number truncation, use uint16_t type to specify rulenum.
  
  PR:           224555
  MFC after:    1 week

Modified:
  head/sbin/ipfw/ipfw2.c

Modified: head/sbin/ipfw/ipfw2.c
==============================================================================
--- head/sbin/ipfw/ipfw2.c      Sun Dec 24 01:16:28 2017        (r327139)
+++ head/sbin/ipfw/ipfw2.c      Sun Dec 24 01:55:12 2017        (r327140)
@@ -2256,12 +2256,13 @@ do_range_cmd(int cmd, ipfw_range_tlv *rt)
 void
 ipfw_sets_handler(char *av[])
 {
-       uint32_t masks[2];
-       int i;
-       uint8_t cmd, rulenum;
        ipfw_range_tlv rt;
        char *msg;
        size_t size;
+       uint32_t masks[2];
+       int i;
+       uint16_t rulenum;
+       uint8_t cmd;
 
        av++;
        memset(&rt, 0, sizeof(rt));
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to