Fix AsyncUDP server exception
This commit is contained in:
parent
ff90778173
commit
ddfeae90d0
@ -286,6 +286,8 @@ AsyncUDPPacket::AsyncUDPPacket(AsyncUDP *udp, pbuf *pb, const ip_addr_t *raddr,
|
|||||||
_len = pb->len;
|
_len = pb->len;
|
||||||
_index = 0;
|
_index = 0;
|
||||||
|
|
||||||
|
pbuf_ref(_pb);
|
||||||
|
|
||||||
//memcpy(&_remoteIp, raddr, sizeof(ip_addr_t));
|
//memcpy(&_remoteIp, raddr, sizeof(ip_addr_t));
|
||||||
_remoteIp.type = raddr->type;
|
_remoteIp.type = raddr->type;
|
||||||
_localIp.type = _remoteIp.type;
|
_localIp.type = _remoteIp.type;
|
||||||
|
Loading…
Reference in New Issue
Block a user