From: Howard Chu Date: Fri, 25 Sep 2015 17:53:05 +0000 (+0100) Subject: ITS#8230 fix padding count X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ccedb68ee21cadd16f2fefdca4cb8cd9f3bda2e9;p=openldap ITS#8230 fix padding count --- 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++) {