libtls: Fix double-free when enumerating private keys

This commit is contained in:
Tobias Brunner
2025-08-22 12:07:55 +02:00
parent dcb53e076b
commit 9da68ec9f5
+1
View File
@@ -2774,6 +2774,7 @@ METHOD(enumerator_t, private_key_enumerate, bool,
VA_ARGS_VGET(args, key_out, auth_out);
DESTROY_IF(this->key);
this->key = NULL;
DESTROY_IF(this->auth);
this->auth = auth_cfg_create();