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:
parent
5239b6bc8d
commit
ac90d8c834
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue