aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inet.c b/src/inet.c
index 758dbf8..962acec 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -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);