diff options
author | 2008-01-31 03:58:01 -0800 | |
---|---|---|
committer | 2008-01-31 19:27:30 -0800 | |
commit | 41d0cdedd5d0a067069a1559315aa9bfdf00794a (patch) | |
tree | 3a0b85e1d7607cd92ee840b8726deb029bd97594 /net/netfilter | |
parent | linux/types.h: Use __u64 for aligned_u64 (diff) | |
download | linux-41d0cdedd5d0a067069a1559315aa9bfdf00794a.tar.gz linux-41d0cdedd5d0a067069a1559315aa9bfdf00794a.tar.bz2 linux-41d0cdedd5d0a067069a1559315aa9bfdf00794a.zip |
[NETFILTER]: nfnetlink_log: fix typo
It should use htonl for the GID, not htons.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nfnetlink_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index 5013cb97ce2b..2348fcb7c139 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c @@ -467,7 +467,7 @@ __build_packet_message(struct nfulnl_instance *inst, read_lock_bh(&skb->sk->sk_callback_lock); if (skb->sk->sk_socket && skb->sk->sk_socket->file) { __be32 uid = htonl(skb->sk->sk_socket->file->f_uid); - __be32 gid = htons(skb->sk->sk_socket->file->f_gid); + __be32 gid = htonl(skb->sk->sk_socket->file->f_gid); /* need to unlock here since NLA_PUT may goto */ read_unlock_bh(&skb->sk->sk_callback_lock); NLA_PUT_BE32(inst->skb, NFULA_UID, uid); |