Added check for validity of receivefrom result (ohops).

This commit is contained in:
Markus Stenberg 2013-01-28 16:21:52 +02:00
parent 9ed54c2eaf
commit 8b56df87c5
2 changed files with 4 additions and 3 deletions

View file

@ -246,6 +246,7 @@ static int meth_receivefrom(lua_State *L)
lua_pushstring(L, gai_strerror(err));
return 2;
}
lua_pushlstring(L, buffer, got);
lua_pushstring(L, addrstr);
lua_pushstring(L, portstr);
return 3;