luci-0.10: merge r7297

This commit is contained in:
Jo-Philipp Wich 2011-07-17 09:05:10 +00:00
parent 5848874d1a
commit e049665fe2

View file

@ -179,7 +179,7 @@ static int nixio_sock__recvfrom(lua_State *L, int from) {
} }
} }
#ifndef __WINNT__ #ifndef __WINNT__
else if (sock->domain == AF_UNIX) { else if (sock->domain == AF_UNIX && alen > sizeof(sa_family_t)) {
lua_pushstring(L, addr_un.sun_path); lua_pushstring(L, addr_un.sun_path);
return 2; return 2;
} }