diff --git a/src/maat_ipport_plugin.c b/src/maat_ipport_plugin.c index bc8efd2..c96d1bc 100644 --- a/src/maat_ipport_plugin.c +++ b/src/maat_ipport_plugin.c @@ -553,6 +553,10 @@ struct ex_data_runtime *ipport_plugin_runtime_get_ex_data_rt(void *ipport_plugin static int validate_port(struct ipport_item *item, uint16_t port) { + if (NULL == item) { + return -1; + } + uint16_t host_port = ntohs(port); if (item->min_port > host_port || item->max_port < host_port) {