-
- Downloads
session: initialise uci_granular in rpc_session_new
It is necessary to call rpc_uci_granular_init for every new session that is created. Failure to do so leaves the granular_configs AVL tree uninitialised and results in NULL pointer dereference if any uci_granular function is called on the session. Call to rpc_uci_granular_init is therefore moved to rpc_session_new so it will always happen. This resolves issues with NULL pointer dereference when sessions are accessed after rpcd has been reloaded and the session has been restored from /var/run/rpcd/sessions/ by rpc_session_thaw.
Please register or sign in to comment