mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Be more clear about where errors come from in NSE bind
This commit is contained in:
@@ -844,7 +844,7 @@ static int l_bind (lua_State *L)
|
|||||||
|
|
||||||
rc = getaddrinfo(addr_str, port_str, &hints, &results);
|
rc = getaddrinfo(addr_str, port_str, &hints, &results);
|
||||||
if (rc != 0)
|
if (rc != 0)
|
||||||
return nseU_safeerror(L, gai_strerror(rc));
|
return nseU_safeerror(L, "getaddrinfo: %s", gai_strerror(rc));
|
||||||
if (results == NULL)
|
if (results == NULL)
|
||||||
return nseU_safeerror(L, "getaddrinfo: no results found");
|
return nseU_safeerror(L, "getaddrinfo: no results found");
|
||||||
if (results->ai_addrlen > sizeof(nu->source_addr)) {
|
if (results->ai_addrlen > sizeof(nu->source_addr)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user