forked from Minki/linux
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>
This commit is contained in:
parent
bc01befdcf
commit
5adbb9fb0c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user