master
Diego Nehab 2017-03-20 15:50:47 -03:00
parent 865356f6eb
commit 1b4debffee
1 changed files with 1 additions and 0 deletions

View File

@ -206,6 +206,7 @@ static int meth_receivefrom(lua_State *L) {
lua_pushliteral(L, "out of memory");
return 2;
}
addr.sun_path[0] = '\0';
err = socket_recvfrom(&un->sock, dgram, wanted, &got, (SA *) &addr,
&addr_len, tm);
/* Unlike STREAM, recv() of zero is not closed, but a zero-length packet. */