projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbe54e3
)
dccp: fix error propagation in dccp_v4_connect
author
RongQing.Li
<roy.qing.li@gmail.com>
Mon, 21 Nov 2011 21:45:26 +0000
(16:45 -0500)
committer
David S. Miller
<davem@davemloft.net>
Mon, 21 Nov 2011 21:45:26 +0000
(16:45 -0500)
The errcode is not updated when ip_route_newports() fails.
Signed-off-by: RongQing.Li <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ipv4.c
patch
|
blob
|
blame
|
history
diff --git
a/net/dccp/ipv4.c
b/net/dccp/ipv4.c
index 90a919afbed79ee5998f510badfaaa199a441086..3f4e5414c8e5200711839e8847437809047cb778 100644
(file)
--- a/
net/dccp/ipv4.c
+++ b/
net/dccp/ipv4.c
@@
-111,6
+111,7
@@
int dccp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len)
rt = ip_route_newports(fl4, rt, orig_sport, orig_dport,
inet->inet_sport, inet->inet_dport, sk);
if (IS_ERR(rt)) {
+ err = PTR_ERR(rt);
rt = NULL;
goto failure;
}