Skip to content

Commit 7dfa935

Browse files
committed
fix: missing net to host conversion of port in logging in group_chat.c
1 parent 856e4fe commit 7dfa935

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
895a21873dc8c2e99fd42358c7bd133503d1b9071284b0c38fccbde045f6924b /usr/local/bin/tox-bootstrapd
1+
b2bee729be40b0a0d8a4c6f0e2a527854d9a9d37712b73b915d7470bc91f5e6a /usr/local/bin/tox-bootstrapd

toxcore/group_chats.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6023,7 +6023,7 @@ static bool handle_gc_lossless_packet(const GC_Session *c, GC_Chat *chat, const
60236023
if (len < 0) {
60246024
Ip_Ntoa ip_str;
60256025
LOGGER_DEBUG(chat->log, "Failed to unwrap lossless packet from %s:%d: %d",
6026-
net_ip_ntoa(&gconn->addr.ip_port.ip, &ip_str), gconn->addr.ip_port.port, len);
6026+
net_ip_ntoa(&gconn->addr.ip_port.ip, &ip_str), net_ntohs(gconn->addr.ip_port.port), len);
60276027
free(data);
60286028
return false;
60296029
}
@@ -6143,7 +6143,7 @@ static bool handle_gc_lossy_packet(const GC_Session *c, GC_Chat *chat, const uin
61436143
if (len <= 0) {
61446144
Ip_Ntoa ip_str;
61456145
LOGGER_DEBUG(chat->log, "Failed to unwrap lossy packet from %s:%d: %d",
6146-
net_ip_ntoa(&gconn->addr.ip_port.ip, &ip_str), gconn->addr.ip_port.port, len);
6146+
net_ip_ntoa(&gconn->addr.ip_port.ip, &ip_str), net_ntohs(gconn->addr.ip_port.port), len);
61476147
free(data);
61486148
return false;
61496149
}

0 commit comments

Comments
 (0)