Added check for validity of receivefrom result (ohops).
This commit is contained in:
parent
9ed54c2eaf
commit
8b56df87c5
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue