SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
21
net/kismet/patches/patch-tcpclient_cc
Normal file
21
net/kismet/patches/patch-tcpclient_cc
Normal file
|
@ -0,0 +1,21 @@
|
|||
Index: tcpclient.cc
|
||||
--- tcpclient.cc.orig
|
||||
+++ tcpclient.cc
|
||||
@@ -75,7 +75,7 @@ int TcpClient::Connect(const char *in_remotehost, shor
|
||||
local_sock.sin_addr.s_addr = htonl(INADDR_ANY);
|
||||
local_sock.sin_port = htons(0);
|
||||
|
||||
- if (bind(cli_fd, (struct sockaddr *) &local_sock, sizeof(local_sock)) < 0) {
|
||||
+ if (::bind(cli_fd, (struct sockaddr *) &local_sock, sizeof(local_sock)) < 0) {
|
||||
snprintf(errstr, 1024, "TCP client bind() failed: %s", strerror(errno));
|
||||
globalreg->messagebus->InjectMessage(errstr, MSGFLAG_ERROR);
|
||||
close(cli_fd);
|
||||
@@ -170,7 +170,7 @@ int TcpClient::ConnectSync(const char *in_remotehost,
|
||||
local_sock.sin_addr.s_addr = htonl(INADDR_ANY);
|
||||
local_sock.sin_port = htons(0);
|
||||
|
||||
- if (bind(cli_fd, (struct sockaddr *) &local_sock, sizeof(local_sock)) < 0) {
|
||||
+ if (::bind(cli_fd, (struct sockaddr *) &local_sock, sizeof(local_sock)) < 0) {
|
||||
snprintf(errstr, 1024, "TCP client bind() failed: %s", strerror(errno));
|
||||
globalreg->messagebus->InjectMessage(errstr, MSGFLAG_ERROR);
|
||||
close(cli_fd);
|
Loading…
Add table
Add a link
Reference in a new issue