diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2007-02-13 11:08:12 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-02-13 11:08:12 +0000 |
| commit | 10f36dd29ba1b22aa69ccc09dc9de84d89830613 (patch) | |
| tree | 2db72090bc2c171ca104c726a7e9da9d095725a1 /Src/Modules/tcp.c | |
| parent | 23165: fix problems with bases: error if over 36 and don't interpret octal (diff) | |
| download | zsh-10f36dd29ba1b22aa69ccc09dc9de84d89830613.tar zsh-10f36dd29ba1b22aa69ccc09dc9de84d89830613.tar.gz zsh-10f36dd29ba1b22aa69ccc09dc9de84d89830613.tar.bz2 zsh-10f36dd29ba1b22aa69ccc09dc9de84d89830613.tar.lz zsh-10f36dd29ba1b22aa69ccc09dc9de84d89830613.tar.xz zsh-10f36dd29ba1b22aa69ccc09dc9de84d89830613.tar.zst zsh-10f36dd29ba1b22aa69ccc09dc9de84d89830613.zip | |
23168: fix error message for failed bind
Diffstat (limited to 'Src/Modules/tcp.c')
| -rw-r--r-- | Src/Modules/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
