diff options
author | Luka Perkov <luka@openwrt.org> | 2014-01-29 11:21:59 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-01-29 13:29:57 +0000 |
commit | 4cc6a9deb8eb65c8771ed56ae9fc950f3efa99c6 (patch) | |
tree | 05bd9f341d3812bf4a4674e4b474c5aff1251824 /file.c | |
parent | 835b8b768da374075af56f624537d03d8ec97647 (diff) | |
download | rpcd-4cc6a9deb8eb65c8771ed56ae9fc950f3efa99c6.tar.gz |
fix segmentation fault when plugins are loaded
Function rpc_plugin_register_library() is modifying the struct's contents in
list_add() call. That said, the rpc_plugin struct should not be defined as
const. This caused segmentation fault when built on up-to-date Arch Linux.
Signed-off-by: Luka Perkov <luka@openwrt.org>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -612,6 +612,6 @@ rpc_file_api_init(const struct rpc_daemon_ops *o, struct ubus_context *ctx) return ubus_add_object(ctx, &obj); } -const struct rpc_plugin rpc_plugin = { +struct rpc_plugin rpc_plugin = { .init = rpc_file_api_init }; |