Closed hlef closed 5 months ago
A few things are wrong with network_socket_receive_from:
network_socket_receive_from
unclaimedBuffer
check_pointer
port
address
if (received > 0)
buffer
Address all these issues.
A few things are wrong with
network_socket_receive_from
:unclaimedBuffer
but don't unclaim it on error paths, thus leaking the buffer.check_pointer
forport
is done onaddress
, likely due to a copy/paste issue.if (received > 0)
before settingbuffer
is redundant as we already checked this a few lines earlier.Address all these issues.