mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
BUG/MEDIUM: hlua: Don't call RESET_SAFE_LJMP if SET_SAFE_LJMP returns 0.
If SET_SAFE_LJMP returns 0, the spinlock is already unlocked, and lua_atpanic is already set back to hlua_panic_safe, so there's no need to call RESET_SAFE_LJMP. This should be MFC'd into 1.8.
This commit is contained in:
parent
dd51e53367
commit
9e643ea172
@ -6391,7 +6391,6 @@ static int hlua_applet_tcp_init(struct appctx *ctx, struct proxy *px, struct str
|
|||||||
error = "critical error";
|
error = "critical error";
|
||||||
SEND_ERR(px, "Lua applet tcp '%s': %s.\n",
|
SEND_ERR(px, "Lua applet tcp '%s': %s.\n",
|
||||||
ctx->rule->arg.hlua_rule->fcn.name, error);
|
ctx->rule->arg.hlua_rule->fcn.name, error);
|
||||||
RESET_SAFE_LJMP(hlua->T);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user