diff options
-rw-r--r-- | lib/vtls/openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 3b34479bb..8eb1e5ab9 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -176,7 +176,7 @@ static const char *SSL_ERROR_to_str(int err) "SSL_ERROR_WANT_ASYNC_JOB", /* 10 */ "SSL_ERROR_WANT_EARLY", /* 11 */ }; - return ((err >= 0 && err < sizeof str / sizeof str[0]) ? + return ((err >= 0 && err < (int)(sizeof str / sizeof str[0])) ? str[err] : "SSL_ERROR unknown"); } |