skynet.call capture error

This commit is contained in:
云风
2013-12-10 15:20:03 +08:00
parent 4a49346da8
commit c07f4df172
4 changed files with 33 additions and 8 deletions

View File

@@ -601,10 +601,13 @@ _luaseri_unpack(lua_State *L) {
return 0;
}
void * buffer = lua_touserdata(L,1);
int len = luaL_checkinteger(L,2);
if (len == 0) {
return 0;
}
if (buffer == NULL) {
return luaL_error(L, "deserialize null pointer");
}
int len = luaL_checkinteger(L,2);
lua_settop(L,0);
struct read_block rb;