summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2025-02-26 09:57:39 +0000
committertb <>2025-02-26 09:57:39 +0000
commit7a9a595e7440abcea8f3140b43ee845967e12408 (patch)
tree5c4c1816c36e0da2b9d65be22b930a600a7bb841
parent51dba336ac4db37801527689a8ffd9cf7b0ef290 (diff)
downloadopenbsd-7a9a595e7440abcea8f3140b43ee845967e12408.tar.gz
openbsd-7a9a595e7440abcea8f3140b43ee845967e12408.tar.bz2
openbsd-7a9a595e7440abcea8f3140b43ee845967e12408.zip
asn1object: improve error message to include returned value
From Kenjiro Nakayama
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/asn1/asn1object.c b/src/regress/lib/libcrypto/asn1/asn1object.c
index 242881af05..6f1189bbe5 100644
--- a/src/regress/lib/libcrypto/asn1/asn1object.c
+++ b/src/regress/lib/libcrypto/asn1/asn1object.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1object.c,v 1.14 2024/05/29 17:23:05 tb Exp $ */ 1/* $OpenBSD: asn1object.c,v 1.15 2025/02/26 09:57:39 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2021, 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2021, 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -531,7 +531,7 @@ asn1_object_i2d_errors(void)
531 531
532 if ((ret = i2d_ASN1_OBJECT(aobj, NULL)) > 0) { 532 if ((ret = i2d_ASN1_OBJECT(aobj, NULL)) > 0) {
533 fprintf(stderr, "FAIL: i2d_ASN1_OBJECT() succeeded on undefined " 533 fprintf(stderr, "FAIL: i2d_ASN1_OBJECT() succeeded on undefined "
534 "object\n"); 534 "object: returned %d, want <= 0\n", ret);
535 goto failed; 535 goto failed;
536 } 536 }
537 537