diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-25 21:36:42 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-25 21:36:42 +0100 |
commit | db79faae848e9ca5ed1c5b62cdd9d01650687fff (patch) | |
tree | 65b2fe370dc7949e5fd790d8376bc2f15c5af595 /lua.c | |
parent | d404cd06b657cdcd97555362abec7966e339fd6d (diff) |
lua: don't make uhttpd_plugin symbol constant
uhttpd modifies the list_head member of the uhttpd_plugin struct when
loading a plugin, therefore we cannot make it const, otherwise we
trigger a security violation if uhttpd is built with RelRO support.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -295,6 +295,6 @@ static int lua_plugin_init(const struct uhttpd_ops *o, struct config *c) return 0; } -const struct uhttpd_plugin uhttpd_plugin = { +struct uhttpd_plugin uhttpd_plugin = { .init = lua_plugin_init, }; |