X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fevp%2Fencode.c;h=01552ac0982b92dc132d0dc095f71a52e0c43548;hp=fb657d14996eb9addf10d8dbafe3139d49119eb5;hb=0800288e6e1d9f44d471043a970ba57743ca8f4c;hpb=670ff08e77c5b331443a3ed6d41564d863a47f06 diff --git a/crypto/evp/encode.c b/crypto/evp/encode.c index fb657d1499..01552ac098 100644 --- a/crypto/evp/encode.c +++ b/crypto/evp/encode.c @@ -423,7 +423,7 @@ static int evp_decodeblock_int(EVP_ENCODE_CTX *ctx, unsigned char *t, table = data_ascii2bin; /* trim white space from the start of the line. */ - while ((conv_ascii2bin(*f, table) == B64_WS) && (n > 0)) { + while ((n > 0) && (conv_ascii2bin(*f, table) == B64_WS)) { f++; n--; }