diff options
| author | bcook <> | 2015-12-28 14:18:38 +0000 |
|---|---|---|
| committer | bcook <> | 2015-12-28 14:18:38 +0000 |
| commit | 5bf29cb43d200f029aee6412210176a088b66b2c (patch) | |
| tree | 25038e02f58e0f7dc2e82f55f454787b0ca3fd42 | |
| parent | 7f2a001236ed76dbae898ad87f48bd913b0a2009 (diff) | |
| download | openbsd-5bf29cb43d200f029aee6412210176a088b66b2c.tar.gz openbsd-5bf29cb43d200f029aee6412210176a088b66b2c.tar.bz2 openbsd-5bf29cb43d200f029aee6412210176a088b66b2c.zip | |
initialize pointer to avoid undefined free on failure
ok beck@
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libcrypto/asn1/asn1time.c | 4 |
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 | ||
