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

Commit 35997e31 authored by Allan Stephens's avatar Allan Stephens Committed by David S. Miller
Browse files

tipc: Provide correct error code for unsupported connect() operation



Modify TIPC to return EOPNOTSUPP if an application attempts to perform
 a non-blocking connect() operation, which is not supported by TIPC.

Signed-off-by: default avatarAllan Stephens <allan.stephens@windriver.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3720d40b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1380,7 +1380,7 @@ static int connect(struct socket *sock, struct sockaddr *dest, int destlen,
	/* For now, TIPC does not support the non-blocking form of connect() */

	if (flags & O_NONBLOCK) {
		res = -EWOULDBLOCK;
		res = -EOPNOTSUPP;
		goto exit;
	}