projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7965ee9
)
ipvs: Avoid null-pointer deref in debug code
author
Alex Gartrell
<agartrell@fb.com>
Mon, 6 Oct 2014 15:46:19 +0000
(08:46 -0700)
committer
Simon Horman
<simon.horman@netronome.com>
Tue, 28 Oct 2014 00:48:31 +0000
(09:48 +0900)
Use daddr instead of reaching into dest.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Gartrell <agartrell@fb.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_xmit.c
patch
|
blob
|
history
diff --git
a/net/netfilter/ipvs/ip_vs_xmit.c
b/net/netfilter/ipvs/ip_vs_xmit.c
index
91f17c1
..
437a366
100644
(file)
--- a/
net/netfilter/ipvs/ip_vs_xmit.c
+++ b/
net/netfilter/ipvs/ip_vs_xmit.c
@@
-316,7
+316,7
@@
__ip_vs_get_out_rt(int skb_af, struct sk_buff *skb, struct ip_vs_dest *dest,
if (unlikely(crosses_local_route_boundary(skb_af, skb, rt_mode,
local))) {
IP_VS_DBG_RL("We are crossing local and non-local addresses"
- " daddr=%pI4\n", &d
est->addr.ip
);
+ " daddr=%pI4\n", &d
addr
);
goto err_put;
}
@@
-458,7
+458,7
@@
__ip_vs_get_out_rt_v6(int skb_af, struct sk_buff *skb, struct ip_vs_dest *dest,
if (unlikely(crosses_local_route_boundary(skb_af, skb, rt_mode,
local))) {
IP_VS_DBG_RL("We are crossing local and non-local addresses"
- " daddr=%pI6\n",
&dest->addr.in6
);
+ " daddr=%pI6\n",
daddr
);
goto err_put;
}