1
0
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:
dmiller
2014-04-17 21:58:39 +00:00
parent 6bd9462dd6
commit b5e53fc1d8

View File

@@ -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;