Date: Fri, 28 Apr 2006 11:30:25 GMT From: SeaD <sead@mail.ru> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/96263: port update: net/bounce . bind outgoing connection Message-ID: <200604281130.k3SBUP8p041840@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/96263; it has been noted by GNATS. From: SeaD <sead@mail.ru> To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/96263: port update: net/bounce . bind outgoing connection Date: Fri, 28 Apr 2006 17:26:44 +0600 >Submitter-Id: current-users >Originator: SeaD >Organization: >Confidential: no >Synopsis: port update: net/bounce . bind outgoing connection >Severity: non-critical >Priority: low >Category: ports >Class: update >Release: FreeBSD 6.0-RELEASE-p3 i386 >Environment: System: FreeBSD newcom.perm.ws 6.0-RELEASE-p3 FreeBSD 6.0-RELEASE-p3 #2: Mon Feb 27 19:34:42 YEKT 2006 sead@newcom.perm.ws:/usr/obj/usr/src/sys/KNEWCOM i386 >Description: Small port update. Added file: bounce/files/patch-02 >How-To-Repeat: >Fix: diff -ruN bounce.old/files/patch-02 bounce/files/patch-02 --- bounce.old/files/patch-02 Thu Jan 1 03:00:00 1970 +++ bounce/files/patch-02 Fri Apr 28 14:48:27 2006 @@ -0,0 +1,21 @@ +--- bounce.c.orig Wed Mar 15 13:21:58 2006 ++++ bounce.c Fri Mar 31 17:58:08 2006 +@@ -220,6 +220,7 @@ + exit(-1); + } + listen(srv_fd,QLEN); ++ srv_addr.sin_port=0; + + signal(SIGCHLD, sigchld); + printf("Ready to bounce connections from port %i to %s on port %i\n", +@@ -252,6 +253,10 @@ + default: /* parent process */ + close(srv_fd); /* close original socket */ + if ((cl_fd=socket(PF_INET, SOCK_STREAM, 0))<0) { ++ close(rem_fd); ++ exit(-1); ++ } ++ if (bind(cl_fd,(struct sockaddr *)&srv_addr,sizeof(srv_addr))<0) { + close(rem_fd); + exit(-1); + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604281130.k3SBUP8p041840>