forked from wolfSSL/wolfssl
adjust sizeof type for getsockopt argument
This commit is contained in:
@ -517,7 +517,7 @@ int EmbedSendTo(WOLFSSL* ssl, char *buf, int sz, void *ctx)
|
|||||||
const SOCKADDR_S* peer = NULL;
|
const SOCKADDR_S* peer = NULL;
|
||||||
XSOCKLENT peerSz = 0;
|
XSOCKLENT peerSz = 0;
|
||||||
int type;
|
int type;
|
||||||
XSOCKLENT length = sizeof( XSOCKLENT );
|
XSOCKLENT length = sizeof(int); /* optvalue 'type' is of size int */
|
||||||
|
|
||||||
WOLFSSL_ENTER("EmbedSendTo()");
|
WOLFSSL_ENTER("EmbedSendTo()");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user