diff options
-rw-r--r-- | crypto/punycode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/punycode.c b/crypto/punycode.c index f6d7ff7960..f0796163e3 100644 --- a/crypto/punycode.c +++ b/crypto/punycode.c @@ -181,7 +181,7 @@ int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, n = n + i / (written_out + 1); i %= (written_out + 1); - if (written_out > max_out) + if (written_out >= max_out) return 0; memmove(pDecoded + i + 1, pDecoded + i, |