From 10f36dd29ba1b22aa69ccc09dc9de84d89830613 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 13 Feb 2007 11:08:12 +0000 Subject: 23168: fix error message for failed bind --- Src/Modules/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Modules') diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c index 232cc31bc..2484edfe3 100644 --- a/Src/Modules/tcp.c +++ b/Src/Modules/tcp.c @@ -432,7 +432,7 @@ bin_ztcp(char *nam, char **args, Options ops, UNUSED(int func)) if (bind(sess->fd, (struct sockaddr *)&sess->sock.in, sizeof(struct sockaddr_in))) { char buf[DIGBUFSIZE]; - convbase(buf, (zlong)lport, 10); + convbase(buf, (zlong)ntohs(lport), 10); zwarnnam(nam, "could not bind to port %s: %e", buf, errno); tcp_close(sess); return 1; -- cgit 1.4.1