Skip to content

Commit

Permalink
Merge pull request #227 from flaviojs/zero-pkt-netio_recv
Browse files Browse the repository at this point in the history
Zero pkt in netio_recv.
  • Loading branch information
grossmj authored Apr 4, 2024
2 parents 7d0108c + 71ac4e2 commit 5212749
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 5212749

Please sign in to comment.