From owner-freebsd-bugs Mon Nov 4 12: 0:17 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE2A137B401 for ; Mon, 4 Nov 2002 12:00:14 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEAD943E7B for ; Mon, 4 Nov 2002 12:00:08 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gA4K08x3064863 for ; Mon, 4 Nov 2002 12:00:08 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gA4K08Zg064862; Mon, 4 Nov 2002 12:00:08 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E10D537B401 for ; Mon, 4 Nov 2002 11:53:55 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61A9543E6E for ; Mon, 4 Nov 2002 11:53:55 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.6/8.12.6) with ESMTP id gA4Jrt7R033363 for ; Mon, 4 Nov 2002 11:53:55 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.6/8.12.6/Submit) id gA4JrtE1033362; Mon, 4 Nov 2002 11:53:55 -0800 (PST) Message-Id: <200211041953.gA4JrtE1033362@www.freebsd.org> Date: Mon, 4 Nov 2002 11:53:55 -0800 (PST) From: Bodo Rüskamp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/44887: ng_ksocket: NGM_KSOCKET_CONNECT doesn't work Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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