diff options
author | 2015-10-22 13:58:47 +0000 | |
---|---|---|
committer | 2015-10-22 13:58:47 +0000 | |
commit | 7265076c2b4db0e21ac4c74c47dc2cdcdd49d2d4 (patch) | |
tree | 66aa4ebcb82e161af75089d5e48c889ed9168886 | |
parent | Do not pass an ``ia'' just to dereference ``ia_ifp''. (diff) | |
download | wireguard-openbsd-7265076c2b4db0e21ac4c74c47dc2cdcdd49d2d4.tar.xz wireguard-openbsd-7265076c2b4db0e21ac4c74c47dc2cdcdd49d2d4.zip |
Fix case where we wanted to test ASN1_TIME_set_string() but were testing
ASN1_UTCTIME_set_string() twice instead.
-rw-r--r-- | regress/lib/libcrypto/asn1/asn1time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libcrypto/asn1/asn1time.c b/regress/lib/libcrypto/asn1/asn1time.c index 6c938087f1a..0334e492557 100644 --- a/regress/lib/libcrypto/asn1/asn1time.c +++ b/regress/lib/libcrypto/asn1/asn1time.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1time.c,v 1.4 2015/10/19 16:29:22 beck Exp $ */ +/* $OpenBSD: asn1time.c,v 1.5 2015/10/22 13:58:47 jsing Exp $ */ /* * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> * @@ -211,7 +211,7 @@ asn1_invtime_test(int test_no, struct asn1_time_test *att) "string '%s'\n", test_no, att->str); goto done; } - if (ASN1_UTCTIME_set_string(ut, att->str) != 0) { + if (ASN1_TIME_set_string(t, att->str) != 0) { fprintf(stderr, "FAIL: test %i - successfully set TIME " "string '%s'\n", test_no, att->str); goto done; |