Tiny comment to improve code comprehensibility.
authorBodo Möller <bodo@openssl.org>
Fri, 9 Apr 1999 07:12:17 +0000 (07:12 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 9 Apr 1999 07:12:17 +0000 (07:12 +0000)
Submitted by:
Reviewed by:
PR:

crypto/x509/x509_vfy.c
ssl/s23_srvr.c

index 752cf4f329201b2cd054f63bd590412238e89989..debefefa8bc31d145033c509983a0b8be9b15d68 100644 (file)
@@ -449,7 +449,7 @@ ASN1_UTCTIME *ctm;
        X509_gmtime_adj(&atm,-offset);
 
        i=(buff1[0]-'0')*10+(buff1[1]-'0');
-       if (i < 50) i+=100;
+       if (i < 50) i+=100; /* cf. RFC 2459 */
        j=(buff2[0]-'0')*10+(buff2[1]-'0');
        if (j < 50) j+=100;
 
index a4d0f1c90ff766b98edc7d0e7cae3b76bd3fa873..bf5e1127540581eec53d1a68781ad3a0f5511906 100644 (file)
@@ -213,7 +213,7 @@ SSL *s;
                if (!ssl3_setup_buffers(s)) goto err;
 
                n=ssl23_read_bytes(s,7);
-               if (n != 7) return(n);
+               if (n != 7) return(n); /* n == -1 || n == 0 */
 
                p=s->packet;