mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
fix: missing net to host conversion of port in logging in group_chat.c
This commit is contained in:
parent
856e4fed8a
commit
7dfa935ac8
|
@ -1 +1 @@
|
|||
895a21873dc8c2e99fd42358c7bd133503d1b9071284b0c38fccbde045f6924b /usr/local/bin/tox-bootstrapd
|
||||
b2bee729be40b0a0d8a4c6f0e2a527854d9a9d37712b73b915d7470bc91f5e6a /usr/local/bin/tox-bootstrapd
|
||||
|
|
|
@ -6023,7 +6023,7 @@ static bool handle_gc_lossless_packet(const GC_Session *c, GC_Chat *chat, const
|
|||
if (len < 0) {
|
||||
Ip_Ntoa ip_str;
|
||||
LOGGER_DEBUG(chat->log, "Failed to unwrap lossless packet from %s:%d: %d",
|
||||
net_ip_ntoa(&gconn->addr.ip_port.ip, &ip_str), gconn->addr.ip_port.port, len);
|
||||
net_ip_ntoa(&gconn->addr.ip_port.ip, &ip_str), net_ntohs(gconn->addr.ip_port.port), len);
|
||||
free(data);
|
||||
return false;
|
||||
}
|
||||
|
@ -6143,7 +6143,7 @@ static bool handle_gc_lossy_packet(const GC_Session *c, GC_Chat *chat, const uin
|
|||
if (len <= 0) {
|
||||
Ip_Ntoa ip_str;
|
||||
LOGGER_DEBUG(chat->log, "Failed to unwrap lossy packet from %s:%d: %d",
|
||||
net_ip_ntoa(&gconn->addr.ip_port.ip, &ip_str), gconn->addr.ip_port.port, len);
|
||||
net_ip_ntoa(&gconn->addr.ip_port.ip, &ip_str), net_ntohs(gconn->addr.ip_port.port), len);
|
||||
free(data);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user