Skip to content

Commit

Permalink
Fix: wrong port number in redudp log while closing socket
Browse files Browse the repository at this point in the history
  • Loading branch information
semigodking committed Jan 27, 2024
1 parent a8d9efb commit 92dbff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redudp.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static void bound_udp_action(const void *nodep, const VISIT which, const int dep

inet_ntop(datap->key.sa_family, &datap->key.sin_addr, &buf[0], sizeof(buf));
log_error(LOG_DEBUG, "Close UDP socket %d to %s:%u", datap->fd,
&buf[0], datap->key.sin_port);
&buf[0], ntohs(datap->key.sin_port));
close(datap->fd);
free(datap);
}
Expand Down

0 comments on commit 92dbff0

Please sign in to comment.