Skip to content

Commit

Permalink
contrib/helper.c: remove redundant bind call
Browse files Browse the repository at this point in the history
  • Loading branch information
illiliti committed Aug 29, 2021
1 parent 8a4b5b5 commit 8044ed8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions contrib/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ int main(int argc, char **argv)
return 1;
}

if (bind(fd, (struct sockaddr *)&sa, sizeof(sa)) == -1) {
perror("bind");
close(fd);
return 1;
}

if (sendmsg(fd, &hdr, 0) == -1) {
perror("sendmsg");
close(fd);
Expand Down

0 comments on commit 8044ed8

Please sign in to comment.