X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fbn%2Fbn_lib.c;h=2ca6beab364d801df75c2230572668644941d68f;hp=c8e8519d8ba34b7fd7fcd678fb9680a304d23bfa;hb=3c65047d30dacca345d30269b95af4a5c413e8d1;hpb=c03726ca4153fca8d66185837008aa078969d386 diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c index c8e8519d8b..2ca6beab36 100644 --- a/crypto/bn/bn_lib.c +++ b/crypto/bn/bn_lib.c @@ -553,7 +553,7 @@ BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret) return (NULL); bn_check_top(ret); /* Skip leading zero's. */ - for ( ; *s == 0 && len > 0; s++, len--) + for ( ; len > 0 && *s == 0; s++, len--) continue; n = len; if (n == 0) {