dccp: fix error propagation in dccp_v4_connect
Subsystems (2)
PATCH 1/1 dccp: fix error propagation in dccp_v4_connect
From: RongQing.Li <[email protected]>
The errcode is not updated when ip_route_newports() fails.
Signed-off-by RongQing.Li <[email protected]>
--- net/dccp/ipv4.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
net/dccp/ipv4.c +1 -0
@@ -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; }
Signature · 1 line
1.7.1
From: [email protected]
Date: Mon, 21 Nov 2011 13:18:20 +0800
Quoted 5 lines
From: RongQing.Li <[email protected]>
The errcode is not updated when
ip_route_newports()fails.Signed-off-by RongQing.Li <[email protected]>
Applied, thank you.