diff --git a/lib/hx509/req.c b/lib/hx509/req.c index c8be1d452..5ac1ea7a3 100644 --- a/lib/hx509/req.c +++ b/lib/hx509/req.c @@ -1670,7 +1670,7 @@ hx509_request_print(hx509_context context, hx509_request req, FILE *f) fprintf(f, " unsupported_critical_extensions_count: %u\n", (unsigned)req->nunsupported_crit); } - if (req->nunsupported_crit) { + if (req->nunsupported_opt) { fprintf(f, " unsupported_optional_extensions_count: %u\n", (unsigned)req->nunsupported_opt); }