]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: hlua: hlua_yieldk ctx argument should support pointers
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 13 Jul 2023 08:18:04 +0000 (10:18 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 17 Jul 2023 05:42:47 +0000 (07:42 +0200)
commit2e7d3d2e5cd74235cecbb7376d346acdd6babffe
tree93a0b092913dbbf7b596fead71f54aa1c8d5edbc
parent49ddd87d41b62797d50d7c59e843d0c0b0236eb5
BUG/MINOR: hlua: hlua_yieldk ctx argument should support pointers

lua_yieldk ctx argument is of type lua_KContext which is typedefed to
intptr_t when available so it can be used to store pointers.

But the wrapper function hlua_yieldk() passes it as a regular it so it
breaks that promise.

Changing hlua_yieldk() prototype so that ctx argument is of type
lua_KContext.

This bug had no functional impact because ctx argument is not being
actively used so far. This may be backported to all stable versions
anyway.
include/haproxy/hlua.h
src/hlua.c