util/base64: use padding var for calculations

pull/8165/head
Shivani Bhardwaj 2 years ago committed by Victor Julien
parent 9dc8fffe05
commit 58e5033a44

@ -158,7 +158,7 @@ Base64Ecode DecodeBase64(uint8_t *dest, uint32_t dest_size, const uint8_t *src,
if (!valid && mode == BASE64_MODE_RFC4648) {
padding = B64_BLOCK - bbidx;
*decoded_bytes += ASCII_BLOCK - (B64_BLOCK - bbidx);
*decoded_bytes += ASCII_BLOCK - padding;
DecodeBase64Block(dptr, b64);
*consumed_bytes += bbidx;
}

Loading…
Cancel
Save