mirror of
https://github.com/nmap/nmap.git
synced 2026-02-03 20:16:33 +00:00
Silence libc++ warnings, via Olli Hauer
This commit is contained in:
@@ -3129,7 +3129,7 @@ static void init_socket(int sd) {
|
||||
}
|
||||
if (o.spoofsource && !bind_failed) {
|
||||
o.SourceSockAddr(&ss, &sslen);
|
||||
if (bind(sd, (struct sockaddr*)&ss, sslen) != 0) {
|
||||
if (::bind(sd, (struct sockaddr*)&ss, sslen) != 0) {
|
||||
error("%s: Problem binding source address (%s), errno: %d", __func__, inet_socktop(&ss), socket_errno());
|
||||
perror("bind");
|
||||
bind_failed = 1;
|
||||
|
||||
Reference in New Issue
Block a user