diff options
author | Martin Willi <martin@revosec.ch> | 2012-11-29 11:29:46 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-12-19 10:32:08 +0100 |
commit | 063ae4e52ab1e522694a5e2d4853db5d63a673c0 (patch) | |
tree | ee12a074d7d428d94460ee67b4b3ee0b3334cba7 /src/scepclient/scep.c | |
parent | c61723c69fb5b4eb3d1b5466147718b6f6ef9eda (diff) | |
download | strongswan-063ae4e52ab1e522694a5e2d4853db5d63a673c0.tar.bz2 strongswan-063ae4e52ab1e522694a5e2d4853db5d63a673c0.tar.xz |
Allocate data returned by pkcs7_t.get_attribute()
Diffstat (limited to 'src/scepclient/scep.c')
-rw-r--r-- | src/scepclient/scep.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scepclient/scep.c b/src/scepclient/scep.c index faaac8851..62b244efd 100644 --- a/src/scepclient/scep.c +++ b/src/scepclient/scep.c @@ -85,6 +85,7 @@ void extract_attributes(pkcs7_t *pkcs7, enumerator_t *enumerator, } } DBG2(DBG_APP, "messageType: %s", msgType_names[attrs->msgType]); + free(attr.ptr); } if (pkcs7->get_attribute(pkcs7, OID_PKI_STATUS, enumerator, &attr)) { @@ -98,6 +99,7 @@ void extract_attributes(pkcs7_t *pkcs7, enumerator_t *enumerator, } } DBG2(DBG_APP, "pkiStatus: %s", pkiStatus_names[attrs->pkiStatus]); + free(attr.ptr); } if (pkcs7->get_attribute(pkcs7, OID_PKI_FAIL_INFO, enumerator, &attr)) { @@ -109,6 +111,7 @@ void extract_attributes(pkcs7_t *pkcs7, enumerator_t *enumerator, { DBG1(DBG_APP, "failInfo: %s", failInfo_reasons[attrs->failInfo]); } + free(attr.ptr); } pkcs7->get_attribute(pkcs7, OID_PKI_SENDER_NONCE, enumerator, |