TLS: heuristics: fix memory allocations (#2577)

Allocate heuristics state only if really needed.
Fix memory leak (it happened with WebSocket traffic on port 443)
This commit is contained in:
Ivan Nardi 2024-09-30 16:55:07 +02:00 committed by GitHub
parent a081a5578b
commit 69c89f9061
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 29 additions and 22 deletions