From ccedb68ee21cadd16f2fefdca4cb8cd9f3bda2e9 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 25 Sep 2015 18:53:05 +0100 Subject: [PATCH] ITS#8230 fix padding count --- contrib/slapd-modules/passwd/totp/slapd-totp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/slapd-modules/passwd/totp/slapd-totp.c b/contrib/slapd-modules/passwd/totp/slapd-totp.c index fe816c987a..91f7f0703c 100644 --- a/contrib/slapd-modules/passwd/totp/slapd-totp.c +++ b/contrib/slapd-modules/passwd/totp/slapd-totp.c @@ -245,7 +245,7 @@ totp_b32_pton( */ if (ch == Pad32) { /* We got a pad char. */ - int i = 1; + int i = 0; /* count pad chars */ for (; ch; ch = *src++) { -- 2.39.5