You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
David S. Miller
parent
fbe54e3b7a
commit
525c6465d4
@@ -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,
|
rt = ip_route_newports(fl4, rt, orig_sport, orig_dport,
|
||||||
inet->inet_sport, inet->inet_dport, sk);
|
inet->inet_sport, inet->inet_dport, sk);
|
||||||
if (IS_ERR(rt)) {
|
if (IS_ERR(rt)) {
|
||||||
|
err = PTR_ERR(rt);
|
||||||
rt = NULL;
|
rt = NULL;
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user