mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 23:36:23 +09:00
tipc: fix RDM/DGRAM connect() regression
[ Upstream commit0e63208915
] Fix regression bug introduced in commit365ad353c2
("tipc: reduce risk of user starvation during link congestion") Only signal -EDESTADDRREQ for RDM/DGRAM if we don't have a cached sockaddr. Fixes:365ad353c2
("tipc: reduce risk of user starvation during link congestion") Signed-off-by: Erik Hugne <erik.hugne@gmail.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1c69361496
commit
71d1e057fe
|
@ -943,7 +943,7 @@ static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dlen)
|
|||
|
||||
if (unlikely(!dest)) {
|
||||
dest = &tsk->peer;
|
||||
if (!syn || dest->family != AF_TIPC)
|
||||
if (!syn && dest->family != AF_TIPC)
|
||||
return -EDESTADDRREQ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user