Date: Sat, 18 May 2002 11:43:19 -0700 (PDT) From: Brian Ollenberger <bi375@scn.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/38251: Address is not zeroed in net/libsocket++ port, resulting in failed bind() Message-ID: <200205181843.g4IIhJjG044381@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205181843.g4IIhJjG044381>