ssls: fix potential memory leak on import

Memory can be leaked when importing corrupted SSL session data that
carry the same data fields repeatedly.

Fixes #22323

Closes #22324
This commit is contained in:
Stefan Eissing 2026-07-14 09:35:58 +02:00 committed by Viktor Szakats
parent 94fab2d210
commit 0dc22b690d
No known key found for this signature in database
9 changed files with 201 additions and 9 deletions

21
tests/data/test1678 Normal file
View file

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
ssls-import
</keywords>
</info>
# Client-side
<client>
<features>
SSLS-EXPORT
</features>
<tool>
lib%TESTNUMBER
</tool>
<name>
SSL session import tests
</name>
</client>
</testcase>