summaryrefslogtreecommitdiffstats
path: root/net/dccp/ipv4.c
diff options
context:
space:
mode:
authorRongQing.Li <roy.qing.li@gmail.com>2011-11-21 16:45:26 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-21 16:45:26 -0500
commit525c6465d449cdec04b3c91733e46027a4d08422 (patch)
treeb91bab2701121e6f9a180c9365e57a91bf3271ea /net/dccp/ipv4.c
parentfbe54e3b7a7ad7de92b65e8b10fae300eeec6ef3 (diff)
downloadop-kernel-dev-525c6465d449cdec04b3c91733e46027a4d08422.zip
op-kernel-dev-525c6465d449cdec04b3c91733e46027a4d08422.tar.gz
dccp: fix error propagation in dccp_v4_connect
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>
Diffstat (limited to 'net/dccp/ipv4.c')
-rw-r--r--net/dccp/ipv4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c
index 90a919a..3f4e541 100644
--- 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;
}
OpenPOWER on IntegriCloud