diff options
author | Harald Welte <laforge@netfilter.org> | 2005-11-17 15:06:47 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-17 15:06:47 -0800 |
commit | 2fce76afdb067fa3e7f8ee33c9fe366bd65887ea (patch) | |
tree | 1c3c543169d446d495711860250dca4b319343fb /net/ipv4/netfilter/ip_conntrack_tftp.c | |
parent | [TCP]: TCP highspeed build error (diff) | |
download | linux-dev-2fce76afdb067fa3e7f8ee33c9fe366bd65887ea.tar.xz linux-dev-2fce76afdb067fa3e7f8ee33c9fe366bd65887ea.zip |
[NETFILTER] ip_conntrack: fix ftp/irc/tftp helpers on ports >= 32768
Since we've converted the ftp/irc/tftp helpers to use the new
module_parm_array() some time ago, we ware accidentially using signed data
types - thus preventing those modules from being used on ports >= 32768.
This patch fixes it by using 'ushort' module parameters.
Thanks to Jan Nijs for reporting this bug.
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_tftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_tftp.c b/net/ipv4/netfilter/ip_conntrack_tftp.c index a78736b8525d..d3c5a371f993 100644 --- a/net/ipv4/netfilter/ip_conntrack_tftp.c +++ b/net/ipv4/netfilter/ip_conntrack_tftp.c @@ -26,9 +26,9 @@ MODULE_DESCRIPTION("tftp connection tracking helper"); MODULE_LICENSE("GPL"); #define MAX_PORTS 8 -static short ports[MAX_PORTS]; +static unsigned short ports[MAX_PORTS]; static int ports_c; -module_param_array(ports, short, &ports_c, 0400); +module_param_array(ports, ushort, &ports_c, 0400); MODULE_PARM_DESC(ports, "port numbers of tftp servers"); #if 0 |