aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/tipc/socket.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 4c83aba575c5..348e4ff881ab 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -1260,6 +1260,11 @@ static int connect(struct socket *sock, struct sockaddr *dest, int destlen,
1260 if (sock->state == SS_READY) 1260 if (sock->state == SS_READY)
1261 return -EOPNOTSUPP; 1261 return -EOPNOTSUPP;
1262 1262
1263 /* For now, TIPC does not support the non-blocking form of connect() */
1264
1265 if (flags & O_NONBLOCK)
1266 return -EWOULDBLOCK;
1267
1263 /* Issue Posix-compliant error code if socket is in the wrong state */ 1268 /* Issue Posix-compliant error code if socket is in the wrong state */
1264 1269
1265 if (sock->state == SS_LISTENING) 1270 if (sock->state == SS_LISTENING)