]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
sslapitest: add cast to avoid compiler error
authorPauli <pauli@openssl.org>
Wed, 25 Oct 2023 07:30:39 +0000 (18:30 +1100)
committerMatt Caswell <matt@openssl.org>
Wed, 25 Oct 2023 08:36:36 +0000 (09:36 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22500)

test/sslapitest.c

index 2fbe76f97980368e2f510fb102dc32595ed15c84..94eab9981d269b5491e57b4e4cfab174bea72008 100644 (file)
@@ -11156,7 +11156,7 @@ static int test_data_retry(void)
         goto end;
 
     for (i = 0; i < sizeof(inbuf); i++)
-        inbuf[i] = i;
+        inbuf[i] = (unsigned char)(0xff & i);
     memset(outbuf, 0, sizeof(outbuf));
 
     if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),