projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61cd0c9
)
Free the correct type in OBJ_add_object()
author
Matt Caswell
<matt@openssl.org>
Mon, 12 Mar 2018 15:24:29 +0000
(15:24 +0000)
committer
Matt Caswell
<matt@openssl.org>
Mon, 12 Mar 2018 19:49:44 +0000
(19:49 +0000)
We should be using ASN1_OBJECT_free() not OPENSSL_free().
Fixes #5568
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5597)
crypto/objects/obj_dat.c
patch
|
blob
|
history
diff --git
a/crypto/objects/obj_dat.c
b/crypto/objects/obj_dat.c
index 06a3fb3406161d8226f32fdf2220000426349b61..f4412f661aa41f878306cc08443e5a4c40fb9a10 100644
(file)
--- a/
crypto/objects/obj_dat.c
+++ b/
crypto/objects/obj_dat.c
@@
-213,7
+213,7
@@
int OBJ_add_object(const ASN1_OBJECT *obj)
err:
for (i = ADDED_DATA; i <= ADDED_NID; i++)
OPENSSL_free(ao[i]);
-
OPENSSL
_free(o);
+
ASN1_OBJECT
_free(o);
return NID_undef;
}