diff --git a/plugins/monitor/monitor.c b/plugins/monitor/monitor.c index 15bc4f56..271e8c69 100644 --- a/plugins/monitor/monitor.c +++ b/plugins/monitor/monitor.c @@ -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)); diff --git a/plugins/restful/rest.c b/plugins/restful/rest.c index 2ff95f9a..4cff6156 100644 --- a/plugins/restful/rest.c +++ b/plugins/restful/rest.c @@ -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;