Skip to content

Commit

Permalink
HACK: gnrc_sock_udp: accept any remote
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Mar 22, 2024
1 parent 37fdd7c commit 05e2328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/gnrc/sock/udp/gnrc_sock_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ ssize_t sock_udp_recv_buf_aux(sock_udp_t *sock, void **data, void **buf_ctx,
memcpy(remote, &tmp, sizeof(tmp));
remote->port = byteorder_ntohs(hdr->src_port);
}
if (!_accept_remote(sock, hdr, &tmp)) {
if (!_accept_remote(sock, hdr, &tmp) && 0) {
gnrc_pktbuf_release(pkt);
return -EPROTO;
}
Expand Down

0 comments on commit 05e2328

Please sign in to comment.