From 61214ba6b9e5e6dc2b0cdd89f41a9c84f5438b28 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 18 Sep 2017 23:57:03 +0200 Subject: [PATCH] Remove redundant test --- src/libsodium/sodium/codecs.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libsodium/sodium/codecs.c b/src/libsodium/sodium/codecs.c index efd44b6d..5644dd71 100644 --- a/src/libsodium/sodium/codecs.c +++ b/src/libsodium/sodium/codecs.c @@ -271,11 +271,6 @@ sodium_base642bin(unsigned char * const bin, const size_t bin_maxlen, } if (d == 0xFF) { if (ignore != NULL && strchr(ignore, c) != NULL) { - if (b64_pos >= b64_len) { - errno = ERANGE; - ret = -1; - break; - } b64_pos++; continue; }