Skip to content

Commit

Permalink
tipc: Provide correct error code for unsupported connect() operation
Browse files Browse the repository at this point in the history
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: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Allan Stephens authored and David S. Miller committed Aug 18, 2010
1 parent 3720d40 commit 35997e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 35997e3

Please sign in to comment.