mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Fix null dereference on key setup error.
CID 1301369
This commit is contained in:
parent
e045c3e1e8
commit
24a2bb08ab
@ -199,6 +199,7 @@ ed_key_init_from_file(const char *fname, uint32_t flags,
|
||||
goto cleanup;
|
||||
|
||||
err:
|
||||
if (keypair)
|
||||
memwipe(keypair, 0, sizeof(*keypair));
|
||||
tor_free(keypair);
|
||||
tor_cert_free(cert);
|
||||
|
Loading…
Reference in New Issue
Block a user