PR: 2103
authorDr. Stephen Henson <steve@openssl.org>
Tue, 17 Nov 2009 13:25:35 +0000 (13:25 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 17 Nov 2009 13:25:35 +0000 (13:25 +0000)
Submitted by: Rob Austein <sra@hactrn.net>
Approved by: steve@openssl.org

Initialise atm.flags to 0.

crypto/x509/x509_vfy.c

index 514573325e2c64a5d351ce545e1fffafa369b340..87ebf62525cad5e2579d6708a47859a2945b7e45 100644 (file)
@@ -1727,6 +1727,7 @@ int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time)
                        offset= -offset;
                }
        atm.type=ctm->type;
+       atm.flags = 0;
        atm.length=sizeof(buff2);
        atm.data=(unsigned char *)buff2;