From: Simon Horman Date: Sun, 22 Aug 2010 12:37:51 +0000 (+0900) Subject: netfilter: nf_conntrack_sip: Allow ct_sip_get_header() to be called with a null ct... X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5adbb9fb0c35c38022f79e09fecf15ba8f65f069;p=linux-beck.git netfilter: nf_conntrack_sip: Allow ct_sip_get_header() to be called with a null ct argument Signed-off-by: Simon Horman Acked-by: Julian Anastasov --- diff --git a/net/netfilter/nf_conntrack_sip.c b/net/netfilter/nf_conntrack_sip.c index 53d892210a04..2fd1ea2c1bb3 100644 --- a/net/netfilter/nf_conntrack_sip.c +++ b/net/netfilter/nf_conntrack_sip.c @@ -152,6 +152,9 @@ static int parse_addr(const struct nf_conn *ct, const char *cp, const char *end; int ret = 0; + if (!ct) + return 0; + memset(addr, 0, sizeof(*addr)); switch (nf_ct_l3num(ct)) { case AF_INET: