projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2f9c68
)
[NETFILTER]: nf_conntrack_sip: clear address in parse_addr()
author
Patrick McHardy
<kaber@trash.net>
Mon, 14 Apr 2008 09:15:45 +0000
(11:15 +0200)
committer
Patrick McHardy
<kaber@trash.net>
Mon, 14 Apr 2008 09:15:45 +0000
(11:15 +0200)
Some callers pass uninitialized structures, clear the address to make
sure later comparisions work properly.
Signed-off-by: Patrick McHardy <kaber@trash.net>
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 da5dec6e615857b6c6dc9440ea9a3f8bc0bc0a5b..f3915f8724f9f2c80e3aed526976911830b4fb0b 100644
(file)
--- a/
net/netfilter/nf_conntrack_sip.c
+++ b/
net/netfilter/nf_conntrack_sip.c
@@
-145,6
+145,7
@@
static int parse_addr(const struct nf_conn *ct, const char *cp,
int family = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num;
int ret = 0;
+ memset(addr, 0, sizeof(*addr));
switch (family) {
case AF_INET:
ret = in4_pton(cp, limit - cp, (u8 *)&addr->ip, -1, &end);