forked from wolfSSL/wolfssl
Fixed issue with the DTLS EmbedReceiveFrom() callback using IPv6.
This commit is contained in:
2
src/io.c
2
src/io.c
@ -335,7 +335,7 @@ int EmbedReceiveFrom(CYASSL *ssl, char *buf, int sz, void *ctx)
|
|||||||
int err;
|
int err;
|
||||||
int sd = dtlsCtx->fd;
|
int sd = dtlsCtx->fd;
|
||||||
int dtls_timeout = CyaSSL_dtls_get_current_timeout(ssl);
|
int dtls_timeout = CyaSSL_dtls_get_current_timeout(ssl);
|
||||||
struct sockaddr_in peer;
|
struct sockaddr_in6 peer;
|
||||||
XSOCKLENT peerSz = sizeof(peer);
|
XSOCKLENT peerSz = sizeof(peer);
|
||||||
|
|
||||||
CYASSL_ENTER("EmbedReceiveFrom()");
|
CYASSL_ENTER("EmbedReceiveFrom()");
|
||||||
|
Reference in New Issue
Block a user