diff options
| -rw-r--r-- | src/inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -109,7 +109,7 @@ static int inet_global_getaddrinfo(lua_State *L) | |||
| 109 | ret = getaddrinfo(hostname, NULL, &hints, &resolved); | 109 | ret = getaddrinfo(hostname, NULL, &hints, &resolved); |
| 110 | if (ret != 0) { | 110 | if (ret != 0) { |
| 111 | lua_pushnil(L); | 111 | lua_pushnil(L); |
| 112 | lua_pushstring(L, "getaddrinfo returned error"); | 112 | lua_pushstring(L, socket_gaistrerror(ret)); |
| 113 | return 2; | 113 | return 2; |
| 114 | } | 114 | } |
| 115 | lua_newtable(L); | 115 | lua_newtable(L); |
