mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
Fix issue #196
This commit is contained in:
parent
865356f6eb
commit
1b4debffee
@ -206,6 +206,7 @@ static int meth_receivefrom(lua_State *L) {
|
|||||||
lua_pushliteral(L, "out of memory");
|
lua_pushliteral(L, "out of memory");
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
addr.sun_path[0] = '\0';
|
||||||
err = socket_recvfrom(&un->sock, dgram, wanted, &got, (SA *) &addr,
|
err = socket_recvfrom(&un->sock, dgram, wanted, &got, (SA *) &addr,
|
||||||
&addr_len, tm);
|
&addr_len, tm);
|
||||||
/* Unlike STREAM, recv() of zero is not closed, but a zero-length packet. */
|
/* Unlike STREAM, recv() of zero is not closed, but a zero-length packet. */
|
||||||
|
Loading…
Reference in New Issue
Block a user