From 53c3d44b9acd8f10beaed3eeea06a37bc1c88fa1 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 14 Jan 2010 03:34:11 +0000 Subject: [PATCH] Fix the socklen_t typedef in libdnet-stripped. It was typedef socklen_t int; Michael Pattrick pointed out that it should be typedef int socket_t; --- CHANGELOG | 3 +++ libdnet-stripped/include/config.h.in | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index b2611aaf7..40d8b5892 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ # Nmap Changelog ($Id$); -*-text-*- +o Fixed compilation of libdnet-stripped on platforms that don't have + socklen_t. [Michael Pattrick] + o Fixed a bug in traceroute that could lead to a crash: terminate called after throwing an instance of 'std::out_of_range' what(): bitset::test diff --git a/libdnet-stripped/include/config.h.in b/libdnet-stripped/include/config.h.in index 7d5cbbaf6..1f72a454a 100644 --- a/libdnet-stripped/include/config.h.in +++ b/libdnet-stripped/include/config.h.in @@ -301,5 +301,5 @@ char *strsep(char **, const char *); #endif #ifndef HAVE_SOCKLEN_T -typedef socklen_t int +typedef int socklen_t #endif