]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/ssl/ssl_engine_kernel.c (ssl_callback_SSLVerify_CRL): Fix fips-dev@188832 ssl-fips-dev@180332
authorJoe Orton <jorton@apache.org>
Fri, 3 Jun 2005 12:54:53 +0000 (12:54 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 3 Jun 2005 12:54:53 +0000 (12:54 +0000)
off-by-one.

PR: 35081
Submitted by: Marc Stern <mstern csc.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@179781 13f79535-47bb-0310-9956-ffa450edef68

ssl_engine_kernel.c

index e2756dcfd0be5111b82b4a7a4694c263c0121ff1..03b1e88ce9e0199e8120495cbbbed26635b08862 100644 (file)
@@ -1408,7 +1408,7 @@ int ssl_callback_SSLVerify_CRL(int ok, X509_STORE_CTX *ctx, conn_rec *c)
             BIO_printf(bio, ", nextUpdate: ");
             ASN1_UTCTIME_print(bio, X509_CRL_get_nextUpdate(crl));
 
-            n = BIO_read(bio, buff, sizeof(buff));
+            n = BIO_read(bio, buff, sizeof(buff) - 1);
             buff[n] = '\0';
 
             BIO_free(bio);