| Anonymous | Login | Signup for a new account | 11-10-2008 11:10 PST |
| Main | My View | View Issues | Change Log | Docs |
| 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 | |||||||||
|
|
|||||||||
| Copyright © 2000 - 2006 Mantis Group |