mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -152,6 +152,9 @@ static int parse_addr(const struct nf_conn *ct, const char *cp,
|
||||||
const char *end;
|
const char *end;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
if (!ct)
|
||||||
|
return 0;
|
||||||
|
|
||||||
memset(addr, 0, sizeof(*addr));
|
memset(addr, 0, sizeof(*addr));
|
||||||
switch (nf_ct_l3num(ct)) {
|
switch (nf_ct_l3num(ct)) {
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
|
|
Loading…
Reference in a new issue