diff mbox

[v1,01/12] netfilter: nf_conntrack_sip: Allow ct_sip_get_header() to be called with a null ct argument

Message ID 20100822124857.010510890@vergenet.net
State Not Applicable, archived
Delegated to: David Miller
Headers show

Commit Message

Simon Horman Aug. 22, 2010, 12:44 p.m. UTC
Signed-off-by: Simon Horman <horms@verge.net.au>

--- 

The motivation for this is to allow ct_sip_get_header() to be
used by LVS without connection tracking as per subsequent patches.

--
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
diff mbox

Patch

Index: nf-next-2.6/net/netfilter/nf_conntrack_sip.c
===================================================================
--- nf-next-2.6.orig/net/netfilter/nf_conntrack_sip.c	2010-07-14 20:40:40.000000000 +0900
+++ nf-next-2.6/net/netfilter/nf_conntrack_sip.c	2010-07-14 21:15:06.000000000 +0900
@@ -152,6 +152,9 @@  static int parse_addr(const struct nf_co
 	const char *end;
 	int ret = 0;
 
+	if (!ct)
+		return 0;
+
 	memset(addr, 0, sizeof(*addr));
 	switch (nf_ct_l3num(ct)) {
 	case AF_INET: