mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Be more clear about where errors come from in NSE bind
This commit is contained in:
parent
610bb63f49
commit
8b46e5e3c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue