]> granicus.if.org Git - openssl/commitdiff
Old typo...
authorRichard Levitte <levitte@openssl.org>
Sun, 5 Jun 2005 21:54:59 +0000 (21:54 +0000)
committerRichard Levitte <levitte@openssl.org>
Sun, 5 Jun 2005 21:54:59 +0000 (21:54 +0000)
PR: 1097

crypto/x509/x509_vfy.c

index e43c861ee77e1138bf43d7b9e428d4dc8e34f88c..383e082aba9e7b9cddf20dc28af1edf83c7719f7 100644 (file)
@@ -944,7 +944,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');