[NETFILTER]: Fix oops in conntrack event cache
authorHarald Welte <laforge@netfilter.org>
Sat, 17 Sep 2005 00:00:38 +0000 (17:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Sep 2005 00:00:38 +0000 (17:00 -0700)
commita8f39143ac67ffa2e26ce48aaac6bf5dc7dae95f
tree42039c5eaabcf9501917c2c4ab805183fbea0c8d
parent136e92bbec0a6d4c2dd1e5b5ac869ab5470547a4
[NETFILTER]: Fix oops in conntrack event cache

ip_ct_refresh_acct() can be called without a valid "skb" pointer.
This used to work, since ct_add_counters() deals with that fact.
However, the recently-added event cache doesn't handle this at all.

This patch is a quick fix that is supposed to be replaced soon by a cleaner
solution during the pending redesign of the event cache.

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_core.c