Fix memory leaks on certificate handling

Call rdssl_cert_free() for all certificates created with
rdssl_cert_read().
This commit is contained in:
Markus Beth 2019-02-04 10:29:24 +01:00
parent 35d8c932ab
commit caae8af53c

View File

@ -683,6 +683,10 @@ sec_parse_crypt_info(STREAM s, uint32 * rc4_key_size,
logger(Protocol, Error,
"sec_parse_crypt_info(), got a bad cert: this will probably screw up the rest of the communication");
}
else
{
rdssl_cert_free(ignorecert);
}
}
/* Do da funky X.509 stuffy