diff --git a/src/hlua.c b/src/hlua.c index 28ddf44bb..326f723b4 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -6677,7 +6677,7 @@ static int hlua_cli_parse_fct(char **args, struct appctx *appctx, void *private) appctx->ctx.hlua_cli.task = task_new(); if (!appctx->ctx.hlua_cli.task) { SEND_ERR(NULL, "Lua cli '%s': out of memory.\n", fcn->name); - return 0; + return 1; } appctx->ctx.hlua_cli.task->nice = 0; appctx->ctx.hlua_cli.task->context = appctx;