From owner-freebsd-ports Sat May 18 11:50: 8 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1D15937B414 for ; Sat, 18 May 2002 11:50:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4IIo2h17785; Sat, 18 May 2002 11:50:02 -0700 (PDT) (envelope-from gnats) Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id A7DED37B409 for ; Sat, 18 May 2002 11:43:19 -0700 (PDT) Received: from www.freebsd.org (localhost [127.0.0.1]) by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4IIhJhG044382 for ; Sat, 18 May 2002 11:43:19 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.2/8.12.2/Submit) id g4IIhJjG044381; Sat, 18 May 2002 11:43:19 -0700 (PDT) Message-Id: <200205181843.g4IIhJjG044381@www.freebsd.org> Date: Sat, 18 May 2002 11:43:19 -0700 (PDT) From: Brian Ollenberger To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/38251: Address is not zeroed in net/libsocket++ port, resulting in failed bind() Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 38251 >Category: ports >Synopsis: Address is not zeroed in net/libsocket++ port, resulting in failed bind() >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 18 11:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Brian Ollenberger >Release: 4.5-RELEASE latest patch level >Organization: Isometrix Computer Consulting >Environment: FreeBSD isometrix.2y.net 4.5-RELEASE FreeBSD 4.5-RELEASE #6: Tue Apr 30 09:35:00 PDT 2002 brian@isometrix.2y.net:/usr/src/sys/compile/ISOMETRIX i386 >Description: >How-To-Repeat: ... sockinetbuf si(sockbuf::sock_stream); cout << "bind: " << si.bind("127.0.0.1",5150) << endl; ... With the net/libsocket++ port. The port will not be set, because bind() failed because the sockaddr_in was not zeroed. >Fix: Apply the following patch to the port before compiling: (it would be good if the following patch could be included in the port) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message