TLS: fix another use-of-uninitialized-value error in ClientHello parsing (#1179)

Error detected with valgrind.

==13127== Conditional jump or move depends on uninitialised value(s)
==13127==    at 0x483EF58: strlen (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==13127==    by 0x1A93B6: ndpi_strdup (ndpi_main.c:159)
==13127==    by 0x1C07CC: processClientServerHello (tls.c:1678)
==13127==    by 0x1C0C4C: processTLSBlock (tls.c:712)
==13127==    by 0x1C0C4C: ndpi_search_tls_tcp.part.0 (tls.c:849)

See also 8c3674e9
This commit is contained in:
Ivan Nardi
2021-05-09 15:10:14 +02:00
committed by GitHub
parent 8c28613eb2
commit 12c6ab768d
3 changed files with 6 additions and 2 deletions
Binary file not shown.