Skip to content

Commit

Permalink
Fix strace logging of ipv6 port
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Sep 16, 2024
1 parent 56ca00b commit 5aa970b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/sock/sockdebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const char *_DescribeSockaddr(char buf[128], const struct sockaddr *sa,
p = stpcpy(p, ip);
*p++ = ']';
*p++ = ':';
p = FormatUint32(p, in6->sin6_port);
p = FormatUint32(p, ntohs(in6->sin6_port));
}
} else if (sa->sa_family == AF_UNIX &&
sasize >= sizeof(struct sockaddr_un)) {
Expand Down

0 comments on commit 5aa970b

Please sign in to comment.