[BusyBox 0001161]: patch for function of create_and_bind_stream_or_die in libbb/xconnect.c to solve random listen port problem
bugs at busybox.net
bugs at busybox.net
Sat Jan 13 10:21:54 UTC 2007
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=1161
======================================================================
Reported By: rockeychu
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 1161
Category: Networking Support
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 01-13-2007 02:21 PST
Last Modified: 01-13-2007 02:21 PST
======================================================================
Summary: patch for function of create_and_bind_stream_or_die
in libbb/xconnect.c to solve random listen port problem
Description:
This bug caused any deamon server such as telnetd listened on a unexpected
port.
Patch as following:
Index: libbb/xconnect.c
===================================================================
--- libbb/xconnect.c (revision 17263)
+++ libbb/xconnect.c (working copy)
@@ -213,6 +213,7 @@
fd = xsocket(lsa->sa.sa_family, SOCK_STREAM, 0);
} else {
fd = xsocket_stream(&lsa);
+ set_nport(lsa, htons(port));
}
setsockopt_reuseaddr(fd);
xbind(fd, &lsa->sa, lsa->len);
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
01-13-07 02:21 rockeychu New Issue
01-13-07 02:21 rockeychu Status new => assigned
01-13-07 02:21 rockeychu Assigned To => BusyBox
======================================================================
More information about the busybox-cvs
mailing list