From 1c7e61a35aff3e65891916584e2f3382a1d18422 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 6 Aug 2019 00:54:28 +0300 Subject: [PATCH] wolfssl: Avoid void pointer arithmetic This is a compiler specific extension and not compliant with the C standard. Signed-off-by: Jouni Malinen --- src/crypto/tls_wolfssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/tls_wolfssl.c b/src/crypto/tls_wolfssl.c index 83704fffa..d222d1427 100644 --- a/src/crypto/tls_wolfssl.c +++ b/src/crypto/tls_wolfssl.c @@ -141,7 +141,7 @@ static int wolfssl_receive_cb(WOLFSSL *ssl, char *buf, int sz, void *ctx) if (get > (wpabuf_len(data->in_data) - data->consumed)) get = wpabuf_len(data->in_data) - data->consumed; - os_memcpy(buf, wpabuf_head(data->in_data) + data->consumed, get); + os_memcpy(buf, wpabuf_head_u8(data->in_data) + data->consumed, get); data->consumed += get; if (get == 0)