diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-09-05 12:25:33 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-09-05 12:25:33 +0000 |
commit | 89edbcba2c8d73917033e3257e475f6aa2c3d2e2 (patch) | |
tree | 637d102d765f071ffa4478471454cf94073cee9e /usr.sbin/rpki-client/aspa.c | |
parent | 29c2cb91e8a46561c844c8213cda4a4b70c2693b (diff) |
Don't leak cert in aspa_parse()
ok job
Diffstat (limited to 'usr.sbin/rpki-client/aspa.c')
-rw-r--r-- | usr.sbin/rpki-client/aspa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/aspa.c b/usr.sbin/rpki-client/aspa.c index 4085a82017f..8b3e509e9bf 100644 --- a/usr.sbin/rpki-client/aspa.c +++ b/usr.sbin/rpki-client/aspa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aspa.c,v 1.2 2022/09/03 14:40:09 job Exp $ */ +/* $OpenBSD: aspa.c,v 1.3 2022/09/05 12:25:32 tb Exp $ */ /* * Copyright (c) 2022 Job Snijders <job@fastly.com> * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> @@ -251,6 +251,7 @@ aspa_parse(X509 **x509, const char *fn, const unsigned char *der, size_t len) X509_free(*x509); *x509 = NULL; } + cert_free(cert); free(cms); return p.res; } |