Skip to content

Commit

Permalink
netfilter: nf_conntrack_sip: Allow ct_sip_get_header() to be called w…
Browse files Browse the repository at this point in the history
…ith a null ct argument

Signed-off-by: Simon Horman <horms@verge.net.au>
Acked-by: Julian Anastasov <ja@ssi.bg>
  • Loading branch information
Simon Horman committed Oct 4, 2010
1 parent bc01bef commit 5adbb9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/netfilter/nf_conntrack_sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5adbb9f

Please sign in to comment.