Skip to content

Commit

Permalink
Zero pkt in netio_recv.
Browse files Browse the repository at this point in the history
Closes #125
Hopefully it will make mend happy. Closes #136
  • Loading branch information
flaviojs committed Apr 4, 2024
1 parent 7d0108c commit 71ac4e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/net_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ ssize_t netio_recv(netio_desc_t *nio,void *pkt,size_t max_len)
return(-1);

/* Receive the packet */
memset(pkt, 0, max_len);
if ((len = nio->recv(nio->dptr,pkt,max_len)) <= 0)
return(-1);

Expand Down

0 comments on commit 71ac4e2

Please sign in to comment.