summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbcook <>2015-12-28 14:18:38 +0000
committerbcook <>2015-12-28 14:18:38 +0000
commite487dc535564430c2d0a72004b0f1100261d25a4 (patch)
tree25038e02f58e0f7dc2e82f55f454787b0ca3fd42
parent2c690828baded2d6a46062c101e42398001bf7ca (diff)
downloadopenbsd-e487dc535564430c2d0a72004b0f1100261d25a4.tar.gz
openbsd-e487dc535564430c2d0a72004b0f1100261d25a4.tar.bz2
openbsd-e487dc535564430c2d0a72004b0f1100261d25a4.zip
initialize pointer to avoid undefined free on failure
ok beck@
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/asn1/asn1time.c b/src/regress/lib/libcrypto/asn1/asn1time.c
index 7ed7197ee5..6a3921bd9c 100644
--- a/src/regress/lib/libcrypto/asn1/asn1time.c
+++ b/src/regress/lib/libcrypto/asn1/asn1time.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1time.c,v 1.7 2015/10/25 11:59:37 miod Exp $ */ 1/* $OpenBSD: asn1time.c,v 1.8 2015/12/28 14:18:38 bcook Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -232,7 +232,7 @@ asn1_gentime_test(int test_no, struct asn1_time_test *att)
232{ 232{
233 const unsigned char *der; 233 const unsigned char *der;
234 unsigned char *p = NULL; 234 unsigned char *p = NULL;
235 ASN1_GENERALIZEDTIME *gt; 235 ASN1_GENERALIZEDTIME *gt = NULL;
236 int failure = 1; 236 int failure = 1;
237 int len; 237 int len;
238 238