[rfc 01/13] [RFC 01/13] netfilter: nf_conntrack_sip: Allow ct_sip_get_header() to be called with a null ct argument

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Signed-off-by: Simon Horman <horms@verge.net.au>
---
 net/netfilter/nf_conntrack_sip.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/netfilter/nf_conntrack_sip.c b/net/netfilter/nf_conntrack_sip.c
index 53d8922..2fd1ea2 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:
-- 
1.7.1


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[rfc 00/13] IPVS: SIP Persistence Engine, Simon Horman, (Thu Aug 5, 4:47 am)
[rfc 01/13] [RFC 01/13] netfilter: nf_conntrack_sip: Allow ..., Simon Horman, (Thu Aug 5, 4:47 am)
[rfc 08/13] [RFC 08/13] IPVS: Add struct ip_vs_pe, Simon Horman, (Thu Aug 5, 4:48 am)
[rfc 13/13] [RFC 13/13] IPVS: sip persistence engine, Simon Horman, (Thu Aug 5, 4:48 am)
Re: [rfc 13/13] [RFC 13/13] IPVS: sip persistence engine, Jan Engelhardt, (Thu Aug 5, 5:50 am)
Re: [rfc 13/13] [RFC 13/13] IPVS: sip persistence engine, Julian Anastasov, (Sat Sep 18, 8:09 am)