Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/modp_b64.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ size_t modp_b64_decode(char* dest, const char* src, size_t len)

size_t modp_b64_decode(char* dest, const char* src, size_t len)
{
if (len == 0)
return 0;

size_t i;
size_t leftover;
size_t chunks;
Expand All @@ -176,9 +179,6 @@ size_t modp_b64_decode(char* dest, const char* src, size_t len)
const uint32_t* srcInt = (const uint32_t*)src;
uint32_t y = *srcInt++;

if (len == 0)
return 0;

#ifdef DOPAD
/*
* if padding is used, then the message must be at least
Expand Down