freebsd-ports/security/nmap/files/patch-scan_engine.cc
Olli Hauer dfddabb5cd - update nmap to version 6.25
- fix build with clang and stdlib=libc++ [1]

Nmap 6.25 [2012-11-29]
o [NSE]	Added CPE to smb-os-discovery output.

o [Ncat] Fixed the printing of warning messages	for large arguments to
  the -i and -w	options. [Michal Hlavinka]

o [Ncat] Shut down the write part of connected sockets in listen mode
  when stdin hits EOF, just as was already done	in connect mode.
  [Michal Hlavinka]

o [NSE]	Added new fingerprints for http-enum: Sitecore,	Moodle,	typo3,
  SquirrelMail,	RoundCube. [Jesper Kückelhahn]

o Added	some new checks	for failed library calls. [Bill	Parker]

PR:		172358
		174817

Submitted by:	arrowdodger <6yearold@gmail.com> [1]
		Anders N. <wicked@baot.se> (general update request)
2013-01-06 18:42:38 +00:00

11 lines
496 B
C++

--- ./scan_engine.cc.orig 2013-01-06 16:38:44.000000000 +0100
+++ ./scan_engine.cc 2013-01-06 16:38:44.000000000 +0100
@@ -2999,7 +2999,7 @@
}
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;