Inject TLS Secrets: Check for NULL used secrets map

The GUI menu item should probably be disabled without a capture file
too.

Fix #19667
This commit is contained in:
John Thacker 2024-02-23 07:56:18 -05:00
parent 5239b6bc8d
commit ac90d8c834
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ ssl_session_key_count(void)
{
int count = 0;
ssl_master_key_map_t *mk_map = tls_get_master_key_map(FALSE);
if (!mk_map)
if (!mk_map || !mk_map->used_crandom)
return count;
GHashTableIter iter;