[NETFILTER] bug: nfulnl_msg_config_mode ->copy_range is 32bit
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 3 Nov 2006 08:58:41 +0000 (00:58 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 5 Nov 2006 22:11:28 +0000 (14:11 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nfnetlink_log.c

index fca946c049d9851534314fa9326c9c5103a7241c..00580a8187365a47f83ae7e6818e9f9fd2499e9c 100644 (file)
@@ -878,7 +878,7 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb,
                params = NFA_DATA(nfula[NFULA_CFG_MODE-1]);
 
                nfulnl_set_mode(inst, params->copy_mode,
-                               ntohs(params->copy_range));
+                               ntohl(params->copy_range));
        }
 
        if (nfula[NFULA_CFG_TIMEOUT-1]) {