Allocate data returned by pkcs7_t.get_attribute()

This commit is contained in:
Martin Willi
2012-12-19 10:32:08 +01:00
parent c61723c69f
commit 063ae4e52a
4 changed files with 9 additions and 2 deletions
@@ -323,7 +323,7 @@ METHOD(pkcs7_t, get_attribute, bool,
chunk = e->info->attributes->get_attribute(e->info->attributes, oid);
if (chunk.len)
{
*value = chunk;
*value = chunk_clone(chunk);
return TRUE;
}
}