Skip to content

Commit

Permalink
Merge pull request #270 from samunders-core/udp_balance_stack
Browse files Browse the repository at this point in the history
recv callback expects 4 arguments
  • Loading branch information
creationix committed Dec 5, 2017
2 parents eb87f73 + 671781a commit 16f7cca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ static void luv_udp_recv_cb(uv_udp_t* handle, ssize_t nread, const uv_buf_t* buf
else if (nread > 0) {
lua_pushlstring(L, buf->base, nread);
}
else {
lua_pushnil(L);
}
if (buf) free(buf->base);

// address
Expand Down

0 comments on commit 16f7cca

Please sign in to comment.