Fix memory leaks on certificate handling
Call rdssl_cert_free() for all certificates created with rdssl_cert_read().
This commit is contained in:
parent
35d8c932ab
commit
caae8af53c
4
secure.c
4
secure.c
@ -683,6 +683,10 @@ sec_parse_crypt_info(STREAM s, uint32 * rc4_key_size,
|
|||||||
logger(Protocol, Error,
|
logger(Protocol, Error,
|
||||||
"sec_parse_crypt_info(), got a bad cert: this will probably screw up the rest of the communication");
|
"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
|
/* Do da funky X.509 stuffy
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user