projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a14b289
)
ipv6: Don't pass invalid dst_entry pointer to dst_release().
author
Boris Ostrovsky
<
[email protected]
>
Mon, 4 Apr 2011 20:07:26 +0000
(13:07 -0700)
committer
David S. Miller
<
[email protected]
>
Mon, 4 Apr 2011 20:07:26 +0000
(13:07 -0700)
Make sure dst_release() is not called with error pointer. This is
similar to commit
4910ac6c526d2868adcb5893e0c428473de862b5
("ipv4:
Don't ip_rt_put() an error pointer in RAW sockets.").
Signed-off-by: Boris Ostrovsky <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv6/tcp_ipv6.c
patch
|
blob
|
history
diff --git
a/net/ipv6/tcp_ipv6.c
b/net/ipv6/tcp_ipv6.c
index 2b0c186862c81fa23fb115cc11dc2eb5772ab7be..56fa12538d4505b40e9ec762d00f38d1048b163e 100644
(file)
--- a/
net/ipv6/tcp_ipv6.c
+++ b/
net/ipv6/tcp_ipv6.c
@@
-503,6
+503,7
@@
static int tcp_v6_send_synack(struct sock *sk, struct request_sock *req,
dst = ip6_dst_lookup_flow(sk, &fl6, final_p, false);
if (IS_ERR(dst)) {
err = PTR_ERR(dst);
+ dst = NULL;
goto done;
}
skb = tcp_make_synack(sk, dst, req, rvp);