]> err.no Git - linux-2.6/commit
[NETFILTER]: nfnetlink_log: fix byteorder confusion
authorPatrick McHardy <kaber@trash.net>
Fri, 19 May 2006 09:17:18 +0000 (02:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 May 2006 09:17:18 +0000 (02:17 -0700)
commitee433530d96a7b0af24ab616e5b51f1d89f9ae38
treeef97ce3211d8a034a24de86a06741e662be2c27e
parent2c8ac66bb2ff89e759f0d632a27cc64205e9ddd9
[NETFILTER]: nfnetlink_log: fix byteorder confusion

flags is a u16, so use htons instead of htonl. Also avoid double
conversion.

Noticed by Alexey Dobriyan <adobriyan@gmail.com>

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nfnetlink_log.c