svn commit: r220914 - head/sys/netinet/ipfw
Gleb Smirnoff
glebius at FreeBSD.org
Thu Apr 21 08:18:55 UTC 2011
Author: glebius
Date: Thu Apr 21 08:18:55 2011
New Revision: 220914
URL: http://svn.freebsd.org/changeset/base/220914
Log:
Use size_t for sopt_valsize.
Submitted by: Brandon Gooch <jamesbrandongooch gmail.com>
Modified:
head/sys/netinet/ipfw/ip_fw_nat.c
Modified: head/sys/netinet/ipfw/ip_fw_nat.c
==============================================================================
--- head/sys/netinet/ipfw/ip_fw_nat.c Thu Apr 21 08:15:29 2011 (r220913)
+++ head/sys/netinet/ipfw/ip_fw_nat.c Thu Apr 21 08:18:55 2011 (r220914)
@@ -346,7 +346,8 @@ ipfw_nat_cfg(struct sockopt *sopt)
struct cfg_nat *cfg, *ptr;
char *buf;
struct ip_fw_chain *chain = &V_layer3_chain;
- int gencnt, len, error = 0;
+ size_t len;
+ int gencnt, error = 0;
len = sopt->sopt_valsize;
buf = malloc(len, M_TEMP, M_WAITOK | M_ZERO);
More information about the svn-src-head
mailing list