mirror of
https://github.com/emqx/neuron.git
synced 2026-10-18 21:50:42 +08:00
fix: segfault on update license request
This commit is contained in:
@@ -409,6 +409,8 @@ static int monitor_plugin_request(neu_plugin_t * plugin,
|
||||
handle_events(plugin, header->type, data);
|
||||
break;
|
||||
}
|
||||
case NEU_REQ_UPDATE_LICENSE:
|
||||
break;
|
||||
default:
|
||||
nlog_warn("recv unsupported msg: %s",
|
||||
neu_reqresp_type_string(header->type));
|
||||
|
||||
@@ -168,7 +168,7 @@ static int dashb_plugin_request(neu_plugin_t * plugin,
|
||||
{
|
||||
(void) plugin;
|
||||
|
||||
if (nng_aio_get_input(header->ctx, 3)) {
|
||||
if (header->ctx && nng_aio_get_input(header->ctx, 3)) {
|
||||
// catch all response messages for global config request
|
||||
handle_global_config_resp(header->ctx, header->type, data);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user