Date: Mon, 4 Nov 2002 11:53:55 -0800 (PST) From: Bodo Rüskamp <jordbaer@mac.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/44887: ng_ksocket: NGM_KSOCKET_CONNECT doesn't work Message-ID: <200211041953.gA4JrtE1033362@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 44887
>Category: kern
>Synopsis: ng_ksocket: NGM_KSOCKET_CONNECT doesn't work
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 04 12:00:08 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Bodo Rüskamp
>Release: FreeBSD 4.6.2
>Organization:
>Environment:
>Description:
there are missing curly brackets in the NGM_KSOCKET_CONNECT code
>How-To-Repeat:
try to use NGM_KSOCKET_CONNECT on a UDP socket... :-)
>Fix:
*** ng_ksocket.c
--- ng_ksocket.c
***************
*** 733,744 ****
so->so_state &= ~SS_ISCONNECTING;
ERROUT(error);
}
! if ((so->so_state & SS_ISCONNECTING) != 0)
/* We will notify the sender when we connect */
priv->response_token = msg->header.token;
strcpy(priv->response_addr, raddr);
priv->flags |= KSF_CONNECTING;
ERROUT(EINPROGRESS);
break;
}
--- 733,745 ----
so->so_state &= ~SS_ISCONNECTING;
ERROUT(error);
}
! if ((so->so_state & SS_ISCONNECTING) != 0) {
/* We will notify the sender when we connect */
priv->response_token = msg->header.token;
strcpy(priv->response_addr, raddr);
priv->flags |= KSF_CONNECTING;
ERROUT(EINPROGRESS);
+ }
break;
}
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211041953.gA4JrtE1033362>
