]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: flow_dissector: fix thoff for IPPROTO_AH
authorEric Dumazet <edumazet@google.com>
Thu, 26 Sep 2013 15:44:06 +0000 (08:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Oct 2013 01:14:24 +0000 (18:14 -0700)
commit56fee7fee4bfbcb812eb719d1937eda8ddabc059
tree1ab3113c6bb2e0763485a28432a56d805769dc3c
parentbfd16631035163f9ceeda50d544b0ac7c29838d8
net: flow_dissector: fix thoff for IPPROTO_AH

[ Upstream commit b86783587b3d1d552326d955acee37eac48800f1 ]

In commit 8ed781668dd49 ("flow_keys: include thoff into flow_keys for
later usage"), we missed that existing code was using nhoff as a
temporary variable that could not always contain transport header
offset.

This is not a problem for TCP/UDP because port offset (@poff)
is 0 for these protocols.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Daniel Borkmann <dborkman@redhat.com>
Cc: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/flow_dissector.c