diff options
Diffstat (limited to 'src/pluto/certs.c')
-rw-r--r-- | src/pluto/certs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pluto/certs.c b/src/pluto/certs.c index 902a1f5df..02b8046ca 100644 --- a/src/pluto/certs.c +++ b/src/pluto/certs.c @@ -159,9 +159,9 @@ bool load_cert(char *filename, const char *label, cert_t *out) BUILD_FROM_FILE, filename, BUILD_END); if (cert) { - /* As the API passes an empty cert_t, the CRED_TYPE_CERTIFICATE - * returns a statically allocated cert to copy. */ + /* the API passes an empty cert_t, we move over and free the built one */ *out = *cert; + free(cert); return TRUE; } return FALSE; |