From 3aa0f27b51fe9741a7f018932c632554f5ecda98 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 3 Oct 2013 02:48:46 -0400 Subject: [PATCH] constraints stores network order; we want to return host order --- lib/blacklist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blacklist.c b/lib/blacklist.c index 93bf98e..a33860a 100644 --- a/lib/blacklist.c +++ b/lib/blacklist.c @@ -26,7 +26,7 @@ static constraint_t *constraint = NULL; uint32_t blacklist_lookup_index(uint64_t index) { - return constraint_lookup_index(constraint, index, ADDR_ALLOWED); + return ntohl(constraint_lookup_index(constraint, index, ADDR_ALLOWED)); } // check whether a single IP address is allowed to be scanned.