From nobody@FreeBSD.org  Mon Nov  4 11:53:55 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E10D537B401
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 Rskamp <jordbaer@mac.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ng_ksocket: NGM_KSOCKET_CONNECT doesn't work
X-Send-Pr-Version: www-1.0

>Number:         44887
>Category:       kern
>Synopsis:       ng_ksocket: NGM_KSOCKET_CONNECT doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 04 12:00:08 PST 2002
>Closed-Date:    Mon Apr 28 15:13:10 PDT 2003
>Last-Modified:  Mon Apr 28 15:13:10 PDT 2003
>Originator:     Bodo Rskamp
>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:
State-Changed-From-To: open->closed 
State-Changed-By: archie 
State-Changed-When: Mon Apr 28 15:12:50 PDT 2003 
State-Changed-Why:  
Patch applied in -current and -stable. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44887 
>Unformatted:
