mirror of https://github.com/wolfSSL/wolfssl.git
Fixed issue with the DTLS EmbedReceiveFrom() callback using IPv6.
parent
fdb2416e49
commit
773d0da1bc
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()");
|
||||||
|
|
Loading…
Reference in New Issue