]> git.sur5r.net Git - openldap/commitdiff
ITS#8230 fix padding count
authorHoward Chu <hyc@openldap.org>
Fri, 25 Sep 2015 17:53:05 +0000 (18:53 +0100)
committerHoward Chu <hyc@openldap.org>
Fri, 25 Sep 2015 17:53:05 +0000 (18:53 +0100)
contrib/slapd-modules/passwd/totp/slapd-totp.c

index fe816c987a70df3ba5d7dff9696d927e8a1a961c..91f7f0703c1aacdb5a14d37153b34448da0e7b9e 100644 (file)
@@ -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++) {