Skip to content

Commit ddfeae9

Browse files
committed
Fix AsyncUDP server exception
1 parent ff90778 commit ddfeae9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/AsyncUDP/src/AsyncUDP.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ AsyncUDPPacket::AsyncUDPPacket(AsyncUDP *udp, pbuf *pb, const ip_addr_t *raddr,
286286
_len = pb->len;
287287
_index = 0;
288288

289+
pbuf_ref(_pb);
290+
289291
//memcpy(&_remoteIp, raddr, sizeof(ip_addr_t));
290292
_remoteIp.type = raddr->type;
291293
_localIp.type = _remoteIp.type;

0 commit comments

Comments
 (0)