Fix ndpi_get_lru_cache_stats() (#2303)

Found while fuzzing
This commit is contained in:
Ivan Nardi
2024-02-05 12:38:33 +01:00
committed by GitHub
parent f2b09014f9
commit 66371c202f
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -3104,6 +3104,6 @@ const char *ndpi_lru_cache_idx_to_name(lru_cache_type idx)
"tls_cert", "mining", "msteams", "stun_zoom" };
if(idx < 0 || idx >= NDPI_LRUCACHE_MAX)
return NULL;
return "unknown";
return names[idx];
}