An ubus RPC daemon for Liminix
Find a file
Jo-Philipp Wich 37aa9196b6 plugin: fix leaking invoked method name for exec plugins
The invoked method name was separately duplicated from the call_context
structure. The structure itself is eventually freed by rpc_exec_reply()
but the method string it points to is lost after that.

Use calloc_a() instead to allocate the string copy buffer together with
the context structure, to ensure that all involved memory is freed.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-17 11:50:39 +02:00
include/rpcd plugin: store pointer to exec timeout value in the ops structure 2018-11-28 12:10:40 +01:00
CMakeLists.txt Fix possible linker errors by using CMake find_library macro 2019-06-05 13:10:50 +02:00
exec.c treewide: rename exec_timeout to rpc_exec_timeout 2018-11-28 12:07:58 +01:00
file.c file: increase minimum read buffer size to 4096 bytes 2019-09-21 14:58:38 +02:00
iwinfo.c iwinfo: add WPA3 support 2019-09-09 12:46:20 +02:00
main.c treewide: rename exec_timeout to rpc_exec_timeout 2018-11-28 12:07:58 +01:00
plugin.c plugin: fix leaking invoked method name for exec plugins 2019-10-17 11:50:39 +02:00
session.c session: handle NULL return values of crypt() 2019-05-22 14:25:52 +02:00
sys.c sys: fix symbol redeclaration 2019-09-04 15:51:39 +02:00
uci.c uci: tighten uci reorder operation error handling 2018-08-09 00:07:27 +02:00
unauthenticated.json session: setup a persistent NULL section and implement login procedure 2013-09-10 19:56:36 +02:00