Skip to content

Commit

Permalink
Don't force the caller to initialise the address buffer length
Browse files Browse the repository at this point in the history
  • Loading branch information
lakeman committed Oct 31, 2014
1 parent 6536953 commit 3a1828e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdp_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ssize_t recvwithttl(int sock,unsigned char *buffer, size_t bufferlen,int *ttl, s
iov[0].iov_len=bufferlen;
bzero(&msg,sizeof(msg));
msg.msg_name = &recvaddr->store;
msg.msg_namelen = recvaddr->addrlen;
msg.msg_namelen = sizeof(recvaddr->store);
msg.msg_iov = &iov[0];
msg.msg_iovlen = 1;
msg.msg_control = cmsgcmsg;
Expand Down

0 comments on commit 3a1828e

Please sign in to comment.