From acfb20a9515ca1f5415c9dd6351936fdf14b0d65 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 12 Jun 2019 17:43:27 +0200 Subject: [PATCH] mesh: fix model == null crash in mesh_configuration_server --- test/mesh/mesh_configuration_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/mesh/mesh_configuration_server.c b/test/mesh/mesh_configuration_server.c index c87e14c53..5170c4d09 100644 --- a/test/mesh/mesh_configuration_server.c +++ b/test/mesh/mesh_configuration_server.c @@ -785,7 +785,7 @@ static void config_netkey_add_or_update_derived(void * arg){ mesh_proxy_start_advertising_with_network_id(); #endif - config_netkey_status(NULL, mesh_pdu_netkey_index(access_pdu_in_process), mesh_pdu_src(access_pdu_in_process), MESH_FOUNDATION_STATUS_SUCCESS, network_key->netkey_index); + config_netkey_status(mesh_model_get_configuration_server(), mesh_pdu_netkey_index(access_pdu_in_process), mesh_pdu_src(access_pdu_in_process), MESH_FOUNDATION_STATUS_SUCCESS, network_key->netkey_index); mesh_access_message_processed(access_pdu_in_process); } @@ -950,7 +950,7 @@ static void config_appkey_add_or_udpate_aid(void *arg){ mesh_transport_key_add(transport_key); uint32_t netkey_and_appkey_index = (transport_key->appkey_index << 12) | transport_key->netkey_index; - config_appkey_status(NULL, mesh_pdu_netkey_index(access_pdu_in_process), mesh_pdu_src(access_pdu_in_process), netkey_and_appkey_index, MESH_FOUNDATION_STATUS_SUCCESS); + config_appkey_status(mesh_model_get_configuration_server(), mesh_pdu_netkey_index(access_pdu_in_process), mesh_pdu_src(access_pdu_in_process), netkey_and_appkey_index, MESH_FOUNDATION_STATUS_SUCCESS); mesh_access_message_processed(access_pdu_in_process); }