X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fct%2Fct_prn.c;h=376e04523e5726b4fc42d2945a8785dbbfc48c1c;hp=2786746997b364b5741493ba4e0ba4b9337c5d9b;hb=17ebf85abda18c3875b1ba6670fe7b393bc1f297;hpb=1940aa6e6b51147df10a5bffcaaa2b9904209184 diff --git a/crypto/ct/ct_prn.c b/crypto/ct/ct_prn.c index 2786746997..376e04523e 100644 --- a/crypto/ct/ct_prn.c +++ b/crypto/ct/ct_prn.c @@ -41,7 +41,7 @@ static void timestamp_print(uint64_t timestamp, BIO *out) * characters long with a final Z. Update it with fractional seconds. */ BIO_snprintf(genstr, sizeof(genstr), "%.14s.%03dZ", - ASN1_STRING_data(gen), (unsigned int)(timestamp % 1000)); + ASN1_STRING_get0_data(gen), (unsigned int)(timestamp % 1000)); if (ASN1_GENERALIZEDTIME_set_string(gen, genstr)) ASN1_GENERALIZEDTIME_print(out, gen); ASN1_GENERALIZEDTIME_free(gen);