net: flow_dissector: fix thoff for IPPROTO_AH
authorEric Dumazet <edumazet@google.com>
Thu, 26 Sep 2013 15:44:06 +0000 (08:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Sep 2013 19:32:05 +0000 (15:32 -0400)
commitb86783587b3d1d552326d955acee37eac48800f1
tree2ec80b0d34dd59c4bc330c0fcb467d57bcc760ba
parent8386040b76a46885280b9b19f7080bf7fb558fca
net: flow_dissector: fix thoff for IPPROTO_AH

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>
net/core/flow_dissector.c