diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-07-04 12:01:11 +0200 |
---|---|---|
committer | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-07-04 16:05:22 +0200 |
commit | b3d3e3b2101b176499ef716fa993bd82f194790f (patch) | |
tree | 809b30352504792c36cc6cd726e2645ae5d1f456 /src/lib/ndpi_utils.c | |
parent | 4ff8aa48b2a58a29411ffab1c81c76ff0aae6f30 (diff) |
Replaced malicious JA3-md5/SSL-cert-sha1 ac automata with hashmaps.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index c75ecf151..f243b62fb 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -2130,7 +2130,10 @@ int ndpi_hash_find_entry(ndpi_str_hash *h, char *key, u_int key_len, void **valu HASH_FIND_INT(h_priv, &hash_value, found); if (found != NULL) { - *value = found->value; + if (value != NULL) + { + *value = found->value; + } return 0; } else { return 1; |