diff options
Diffstat (limited to 'crypto/punycode.c')
-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 385b4b1df4..5e211af6d9 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, |