Skip to content

Commit 5469419

Browse files
fix: Crypto lib base32 encode fix return value
Signed-off-by: Prashant Rahul <prashantrahul141@protonmail.com>
1 parent 1a5e8a9 commit 5469419

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/libraries/crypto/base32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ char *base32_encode(const uint8_t *in, size_t inlen, char *out, size_t outlen,
5050
int ret = base32_encode_character(out[i], alphabet);
5151

5252
if (ret == -1) {
53-
return false;
53+
return NULL;
5454
} else {
5555
out[i] = ret;
5656
}

0 commit comments

Comments
 (0)