| Summary: | Address is not zeroed in net/libsocket++ port, resulting in failed bind() | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Brian Ollenberger <bi375> |
| Component: | Individual Port(s) | Assignee: | Tilman Keskinoz <arved> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->feedback where's the patch ? Responsible Changed From-To: freebsd-ports->arved I am gong to look at libsocket++ some time in the future. State Changed From-To: feedback->closed Feedback timeout (2 months) & I have updated libsocket++ |
Fix: Apply the following patch to the port before compiling: (it would be good if the following patch could be included in the port) 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.