1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Be more clear about where errors come from in NSE bind

This commit is contained in:
dmiller
2016-08-30 18:59:55 +00:00
parent 610bb63f49
commit 8b46e5e3c3

View File

@@ -844,7 +844,7 @@ static int l_bind (lua_State *L)
rc = getaddrinfo(addr_str, port_str, &hints, &results);
if (rc != 0)
return nseU_safeerror(L, gai_strerror(rc));
return nseU_safeerror(L, "getaddrinfo: %s", gai_strerror(rc));
if (results == NULL)
return nseU_safeerror(L, "getaddrinfo: no results found");
if (results->ai_addrlen > sizeof(nu->source_addr)) {