diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-02-05 12:38:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 12:38:33 +0100 |
commit | 66371c202fa3331f4c94eee684a032ab9c5cc523 (patch) | |
tree | 3b0a47f273f13df7362d4ea014e20e42661bcf4e /src/lib/ndpi_utils.c | |
parent | f2b09014f9c1a1e248ccf3ffa0e7ace1f3bee1af (diff) |
Fix `ndpi_get_lru_cache_stats()` (#2303)
Found while fuzzing
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 4d21e7526..b80485c96 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -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]; } |