commit | 93405e1fded8c13e85ed3e606d798d4955f91222 | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <tfournier@arpalert.org> | Wed Aug 26 14:19:03 2015 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Aug 27 11:31:02 2015 +0200 |
tree | f695ccf841cd10d130e60f859baa31a822f416c3 | |
parent | 0d79cf686b10d8fda481bf0a083bb91e3e6db829 [diff] |
BUG/MINOR: lua: in some case a sample may remain undefined When we transform a top stack entry in sample, the empty stack case is not handled. This patch fix this behavior.
diff --git a/src/hlua.c b/src/hlua.c index 5357b32..f7ce3a5 100644 --- a/src/hlua.c +++ b/src/hlua.c
@@ -508,6 +508,8 @@ case LUA_TFUNCTION: case LUA_TTHREAD: case LUA_TLIGHTUSERDATA: + case LUA_TNONE: + default: smp->data.type = SMP_T_BOOL; smp->data.u.sint = 0; break;