From c65938abe093e6b6030391e78e0f05cb2b980e48 Mon Sep 17 00:00:00 2001
From: Kurt Zeilenga <kurt@openldap.org>
Date: Mon, 14 Dec 1998 04:21:04 +0000
Subject: [PATCH] Make sure that four characters, rather than only the first
 three, are being analysed in the transaltion to base64. From: Lucio de Re
 <lucio@proxima.alt.za>

---
 libraries/libldif/line64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/libldif/line64.c b/libraries/libldif/line64.c
index 9c91a41530..d77765167b 100644
--- a/libraries/libldif/line64.c
+++ b/libraries/libldif/line64.c
@@ -111,7 +111,7 @@ str_parse_line(
 		stop = strchr( s, '\0' );
 		byte = s;
 		for ( p = s, *vlen = 0; p < stop; p += 4, *vlen += 3 ) {
-			for ( i = 0; i < 3; i++ ) {
+			for ( i = 0; i < 4; i++ ) {
 				if ( p[i] != '=' && (p[i] & 0x80 ||
 				    b642nib[ p[i] & 0x7f ] > 0x3f) ) {
 					Debug( LDAP_DEBUG_ANY,
-- 
GitLab