Skip to content

Commit

Permalink
compact one
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Jun 25, 2024
1 parent e20f063 commit 4d912b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ int mbedtls_base64_encode(unsigned char *dst, size_t dlen, size_t *olen,
n = slen / 3 + (slen % 3 != 0);

if (n > (SIZE_MAX - 1) / 4) {
*olen = SIZE_MAX;
return MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL;
*olen = SIZE_MAX; return MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL;
}

n *= 4;
Expand Down

0 comments on commit 4d912b4

Please sign in to comment.