fix: segfault on update license request

This commit is contained in:
eeff
2023-06-09 14:13:42 +08:00
parent 9c659c8a99
commit dfdcb6e60b
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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));
+1 -1
View File
@@ -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;