fix segmentation fault when plugins are loaded
authorLuka Perkov <luka@openwrt.org>
Wed, 29 Jan 2014 11:21:59 +0000 (11:21 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 29 Jan 2014 13:29:57 +0000 (13:29 +0000)
commit4cc6a9deb8eb65c8771ed56ae9fc950f3efa99c6
tree05bd9f341d3812bf4a4674e4b474c5aff1251824
parent835b8b768da374075af56f624537d03d8ec97647
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>
file.c
iwinfo.c