X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Fx509.c;h=4869b14025d467c38eca805b8faba4eaa95d1cad;hp=58706be34448986c24f615ce1389fddffa6b0dfe;hb=90fac840669f02e75078052a58638ead9ed27a78;hpb=64674bcc8cee73853d00388a5e83cb1b2f38bec1 diff --git a/apps/x509.c b/apps/x509.c index 58706be344..4869b14025 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -695,7 +695,8 @@ bad: else if (serial == i) { BIO_printf(STDout,"serial="); - i2a_ASN1_INTEGER(STDout,x->cert_info->serialNumber); + i2a_ASN1_INTEGER(STDout, + X509_get_serialNumber(x)); BIO_printf(STDout,"\n"); } else if (email == i)