diff options
author | Simon Horman | 2010-08-22 21:37:51 +0900 |
---|---|---|
committer | Simon Horman | 2010-10-04 22:45:23 +0900 |
commit | 5adbb9fb0c35c38022f79e09fecf15ba8f65f069 (patch) | |
tree | 0f9aeaa88762bdafef2c8066d9a378d2b20be6af | |
parent | bc01befdcf3e40979eb518085a075cbf0aacede0 (diff) |
netfilter: nf_conntrack_sip: Allow ct_sip_get_header() to be called with a null ct argument
Signed-off-by: Simon Horman <horms@verge.net.au>
Acked-by: Julian Anastasov <ja@ssi.bg>
-rw-r--r-- | 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 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: |