mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
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>
This commit is contained in:
parent
7122a02fa5
commit
1c7e61a35a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user