diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-08-13 08:37:08 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-08-13 08:37:08 +0000 |
commit | cb11ffa4bd67f11ab1386d67ce4869a6224c0719 (patch) | |
tree | c591264731c18f239019c00639376a200fe3cfe5 /usr.bin/telnet/commands.c | |
parent | 755c56ccde501339e270cc7bfbed7f5a018d75b8 (diff) |
telnet -b broke when getaddrinfo conversion was done,
bind(2) was done on the dst addr instead of the src.
Diffstat (limited to 'usr.bin/telnet/commands.c')
-rw-r--r-- | usr.bin/telnet/commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index 2b67ac56b6c..9b6dd9990cb 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commands.c,v 1.29 2000/08/02 04:10:49 millert Exp $ */ +/* $OpenBSD: commands.c,v 1.30 2000/08/13 08:37:07 niklas Exp $ */ /* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */ /* @@ -2423,7 +2423,7 @@ tn(argc, argv) freeaddrinfo(ares); continue; } - if (bind(net, res->ai_addr, res->ai_addrlen) < 0) { + if (bind(net, ares->ai_addr, ares->ai_addrlen) < 0) { perror(aliasp); (void) close(net); /* dump descriptor */ freeaddrinfo(ares); |