adjust sizeof type for getsockopt argument

This commit is contained in:
JacobBarthelmeh
2022-07-11 07:10:11 -07:00
parent 86662bca2f
commit 032d59b077

View File

@ -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()");