From 6fe1c203ee243e08003ca5e4e7af285768ca3915 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 8 Feb 1996 23:32:25 +0000 Subject: entered into RCS --- pfinet/socket-ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pfinet/socket-ops.c') 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); -- cgit v1.2.3