From: job Date: Tue, 20 Jun 2023 02:46:18 +0000 (+0000) Subject: Fix diagnostic values emitted in warnx X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7725174526cc3e5a2e39d1aa3a58e7a5d1065273;p=openbsd Fix diagnostic values emitted in warnx OK tb@ --- diff --git a/usr.sbin/rpki-client/cms.c b/usr.sbin/rpki-client/cms.c index 3fa59592602..1d31beb0928 100644 --- a/usr.sbin/rpki-client/cms.c +++ b/usr.sbin/rpki-client/cms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms.c,v 1.36 2023/06/17 04:46:11 job Exp $ */ +/* $OpenBSD: cms.c,v 1.37 2023/06/20 02:46:18 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -276,7 +276,7 @@ cms_parse_validate_internal(X509 **xp, const char *fn, const unsigned char *der, assert(octype != NULL); if (OBJ_cmp(obj, octype) != 0) { OBJ_obj2txt(buf, sizeof(buf), obj, 1); - OBJ_obj2txt(obuf, sizeof(obuf), oid, 1); + OBJ_obj2txt(obuf, sizeof(obuf), octype, 1); warnx("%s: RFC 6488: eContentType does not match Content-Type " "OID: %s, want %s", fn, buf, obuf); goto out;