Fix CRL printing to correctly show when there are no revoked certificates.
[openssl.git] / crypto / asn1 / a_gentm.c
index d71c190c776e8beff3d35ba984db493b71979a91..f884b25f968da52f0d0d3965e0f8e9ecb6a41012 100644 (file)
@@ -180,6 +180,7 @@ int ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, char *str)
                        {
                        ASN1_STRING_set((ASN1_STRING *)s,
                                (unsigned char *)str,t.length);
+                       s->type=V_ASN1_GENERALIZEDTIME;
                        }
                return(1);
                }