SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
12
net/kismet/patches/patch-tcpserver_cc
Normal file
12
net/kismet/patches/patch-tcpserver_cc
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: tcpserver.cc
|
||||
--- tcpserver.cc.orig
|
||||
+++ tcpserver.cc
|
||||
@@ -84,7 +84,7 @@ int TcpServer::EnableServer() {
|
||||
}
|
||||
|
||||
// Bind the socket
|
||||
- if (bind(serv_fd, (struct sockaddr *) &serv_sock, sizeof(serv_sock)) < 0) {
|
||||
+ if (::bind(serv_fd, (struct sockaddr *) &serv_sock, sizeof(serv_sock)) < 0) {
|
||||
snprintf(errstr, STATUS_MAX, "TCP server bind() failed: %s",
|
||||
strerror(errno));
|
||||
globalreg->messagebus->InjectMessage(errstr, MSGFLAG_ERROR);
|
Loading…
Add table
Add a link
Reference in a new issue