aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-08-05 21:54:28 (GMT)
committerJouni Malinen <j@w1.fi>2019-08-06 10:12:37 (GMT)
commit1c7e61a35aff3e65891916584e2f3382a1d18422 (patch)
treed9509fcbd80c145040e444a8ca6cedfdde2baae6 /src
parent7122a02fa5b73865b6e5f7604edb8f6d2da6461a (diff)
downloadhostap-1c7e61a35aff3e65891916584e2f3382a1d18422.zip
hostap-1c7e61a35aff3e65891916584e2f3382a1d18422.tar.gz
hostap-1c7e61a35aff3e65891916584e2f3382a1d18422.tar.bz2
wolfssl: Avoid void pointer arithmetic
This is a compiler specific extension and not compliant with the C standard. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'src')
-rw-r--r--src/crypto/tls_wolfssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/tls_wolfssl.c b/src/crypto/tls_wolfssl.c
index 83704ff..d222d14 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)