projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc01bef
)
netfilter: nf_conntrack_sip: Allow ct_sip_get_header() to be called with a null ct...
author
Simon Horman
<horms@verge.net.au>
Sun, 22 Aug 2010 12:37:51 +0000
(21:37 +0900)
committer
Simon Horman
<horms@verge.net.au>
Mon, 4 Oct 2010 13:45:23 +0000
(22:45 +0900)
Signed-off-by: Simon Horman <horms@verge.net.au>
Acked-by: Julian Anastasov <ja@ssi.bg>
net/netfilter/nf_conntrack_sip.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/nf_conntrack_sip.c
b/net/netfilter/nf_conntrack_sip.c
index 53d892210a049363fa3ab04f6e17b04fa9969bbe..2fd1ea2c1bb3ce33035c2169a6b632d553df9878 100644
(file)
--- 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: