From 72ad56869caafbf2cbfc96a0f0fdfe13a458e3eb Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 23 Dec 2021 18:12:58 +0000 Subject: [PATCH] fix typo: boolean true should decode to 1, not 0 --- regress/lib/libcrypto/asn1/asn1basic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/lib/libcrypto/asn1/asn1basic.c b/regress/lib/libcrypto/asn1/asn1basic.c index d2a1fc97ba4..bb657058c25 100644 --- a/regress/lib/libcrypto/asn1/asn1basic.c +++ b/regress/lib/libcrypto/asn1/asn1basic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1basic.c,v 1.1 2021/12/09 16:30:05 jsing Exp $ */ +/* $OpenBSD: asn1basic.c,v 1.2 2021/12/23 18:12:58 tb Exp $ */ /* * Copyright (c) 2017, 2021 Joel Sing * @@ -110,7 +110,7 @@ asn1_boolean_test(void) q = p; if (d2i_ASN1_BOOLEAN(NULL, &q, len) != 1) { - fprintf(stderr, "FAIL: BOOLEAN true did not decode to 0\n"); + fprintf(stderr, "FAIL: BOOLEAN true did not decode to 1\n"); goto failed; } -- 2.20.1