Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 525c6465 authored by RongQing.Li's avatar RongQing.Li Committed by David S. Miller
Browse files

dccp: fix error propagation in dccp_v4_connect



The errcode is not updated when ip_route_newports() fails.

Signed-off-by: default avatarRongQing.Li <roy.qing.li@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fbe54e3b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}