mirror of
				https://github.com/lunarmodules/luasocket.git
				synced 2025-10-31 02:15:38 +01:00 
			
		
		
		
	| @@ -183,6 +183,7 @@ static int inet_global_getaddrinfo(lua_State *L) | |||||||
|         ret = getnameinfo(iterator->ai_addr, (socklen_t) iterator->ai_addrlen,  |         ret = getnameinfo(iterator->ai_addr, (socklen_t) iterator->ai_addrlen,  | ||||||
|             hbuf, (socklen_t) sizeof(hbuf), NULL, 0, NI_NUMERICHOST); |             hbuf, (socklen_t) sizeof(hbuf), NULL, 0, NI_NUMERICHOST); | ||||||
|         if (ret){ |         if (ret){ | ||||||
|  |           freeaddrinfo(resolved); | ||||||
|           lua_pushnil(L); |           lua_pushnil(L); | ||||||
|           lua_pushstring(L, socket_gaistrerror(ret)); |           lua_pushstring(L, socket_gaistrerror(ret)); | ||||||
|           return 2; |           return 2; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user