diff options
Diffstat (limited to 'plop.c')
-rw-r--r-- | plop.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -13,7 +13,6 @@ #include <lauxlib.h> #include <lua.h> -#include <lualib.h> #include "http.h" #include "request.h" @@ -104,7 +103,7 @@ int handle_client(lua_State * L, struct pollfd * pfd, struct request ** request, return -1; // TODO: Handle errors properly } - if (-1 == parse_request(pfd->fd, request)) + if (-1 == parse_request(L, pfd->fd, request)) { respond_only_status(pfd->fd, STATUS_BAD_REQUEST); return -1; // TODO: Handle errors properly @@ -150,7 +149,7 @@ int handle_client(lua_State * L, struct pollfd * pfd, struct request ** request, if (NULL != *request) { - free_request(*request); + free_request(L, *request); *request = NULL; } |