From 7379e377ab367bd74879a58beb3b298e65f69366 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Fri, 8 Jul 2022 15:11:29 -0700 Subject: [PATCH] cast for g++ warning --- src/wolfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wolfio.c b/src/wolfio.c index 1dec585c0..1f43e73da 100644 --- a/src/wolfio.c +++ b/src/wolfio.c @@ -526,7 +526,7 @@ int EmbedSendTo(WOLFSSL* ssl, char *buf, int sz, void *ctx) /* Probably a TCP socket. peer and peerSz MUST be NULL and 0 */ } else if (!dtlsCtx->connected) { - peer = dtlsCtx->peer.sa; + peer = (const SOCKADDR_S*)dtlsCtx->peer.sa; peerSz = dtlsCtx->peer.sz; }