summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-02-08 23:32:25 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-02-08 23:32:25 +0000
commit6fe1c203ee243e08003ca5e4e7af285768ca3915 (patch)
tree2d5875ad6626b42b6eae6a6474e46cc9e07a78a5
parent984240d8a5ace79efdd3b955a57c7821c1e6033b (diff)
entered into RCS
-rw-r--r--pfinet/socket-ops.c6
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);