Old typo...
authorRichard Levitte <levitte@openssl.org>
Sun, 5 Jun 2005 21:55:09 +0000 (21:55 +0000)
committerRichard Levitte <levitte@openssl.org>
Sun, 5 Jun 2005 21:55:09 +0000 (21:55 +0000)
PR: 1097

crypto/x509/x509_vfy.c

index 637e2b6142c57ffbd52cda0eca8bb86be19cbbdb..a4a142cd013fbe20f50952b324fe36298835d257 100644 (file)
@@ -1079,7 +1079,7 @@ int X509_cmp_time(ASN1_TIME *ctm, time_t *cmp_time)
                offset=0;
        else
                {
-               if ((*str != '+') && (str[5] != '-'))
+               if ((*str != '+') && (*str != '-'))
                        return 0;
                offset=((str[1]-'0')*10+(str[2]-'0'))*60;
                offset+=(str[3]-'0')*10+(str[4]-'0');