diff --git a/crypto/crypto_misc.c b/crypto/crypto_misc.c index 0902fab05..9d7710d26 100644 --- a/crypto/crypto_misc.c +++ b/crypto/crypto_misc.c @@ -350,11 +350,8 @@ EXP_FUNC int STDCALL base64_decode(const char *in, int len, } /* check that we don't go past the output buffer */ - if (outlen && z >= *outlen) - { - printf("Stuff %d, %d\n", z, *outlen); + if (z >= *outlen) goto error; - } } if (y != 0)