BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001161 [BusyBox] Networking Support major always 01-13-07 02:21 01-13-07 17:33
Reporter rockeychu View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0001161: 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);
Additional Information
Attached Files

- Relationships

- Notes
(0001987)
vda
01-13-07 17:33

Already in svn, but thanks anyway!
 

- 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
01-13-07 02:52 manchoz Issue Monitored: manchoz
01-13-07 17:33 vda Status assigned => closed
01-13-07 17:33 vda Note Added: 0001987
01-13-07 17:33 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker