diff options
-rw-r--r-- | pfinet/socket-ops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pfinet/socket-ops.c b/pfinet/socket-ops.c index d8ddb6f3..c5c460b3 100644 --- a/pfinet/socket-ops.c +++ b/pfinet/socket-ops.c @@ -1,5 +1,5 @@ /* Interface functions for the socket.defs interface. - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -180,10 +180,10 @@ S_socket_connect (struct sock_user *user, && sock->type != SOCK_DGRAM) err = EISCONN; else if (sock->state != SS_UNCONNECTED - && sock->state != SS_CONNECTING) + && sock->state != SS_CONNECTING + && sock->state != SS_CONNECTED) err = EINVAL; - if (!err) err = - (*sock->ops->connect) (sock, addr->address, addr->len, sock->userflags); |