From 032d59b077e57a8ce34198f839e837996abccdd8 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Mon, 11 Jul 2022 07:10:11 -0700 Subject: [PATCH] adjust sizeof type for getsockopt argument --- src/wolfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wolfio.c b/src/wolfio.c index 1f43e73da..f7eb93e80 100644 --- a/src/wolfio.c +++ b/src/wolfio.c @@ -517,7 +517,7 @@ int EmbedSendTo(WOLFSSL* ssl, char *buf, int sz, void *ctx) const SOCKADDR_S* peer = NULL; XSOCKLENT peerSz = 0; int type; - XSOCKLENT length = sizeof( XSOCKLENT ); + XSOCKLENT length = sizeof(int); /* optvalue 'type' is of size int */ WOLFSSL_ENTER("EmbedSendTo()");