summaryrefslogtreecommitdiff
path: root/lib/libcrypto/objects/obj_xref.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/objects/obj_xref.c')
-rw-r--r--lib/libcrypto/objects/obj_xref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/objects/obj_xref.c b/lib/libcrypto/objects/obj_xref.c
index 25aed74ff11..8e9128efc4b 100644
--- a/lib/libcrypto/objects/obj_xref.c
+++ b/lib/libcrypto/objects/obj_xref.c
@@ -164,7 +164,7 @@ OBJ_add_sigid(int signid, int dig_id, int pkey_id)
sigx_app = sk_nid_triple_new(sigx_cmp);
if (!sigx_app)
return 0;
- ntr = malloc(sizeof(int) * 3);
+ ntr = reallocarray(NULL, sizeof(int), 3);
if (!ntr)
return 0;
ntr->sign_id = signid;