diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-04-30 10:00:05 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-04-30 10:00:05 +0000 |
commit | 18595b28d6594317f453f679cad3b0bf7cb6a644 (patch) | |
tree | 14b4d7bcb6f09b08e50c33382949a8ff44f0f43d | |
parent | 419cdd52735b79972a73d262792165a22cc3ff66 (diff) |
don't freeaddrinfo if getaddrinfo fails; ok deraadt@,itojun@
-rw-r--r-- | usr.bin/telnet/commands.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index 6f1d1eeac3d..ce8844c4d8c 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commands.c,v 1.34 2000/11/08 21:49:44 aaron Exp $ */ +/* $OpenBSD: commands.c,v 1.35 2001/04/30 10:00:04 markus Exp $ */ /* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */ /* @@ -2414,7 +2414,6 @@ tn(argc, argv) if (error) { warn("%s: %s", aliasp, gai_strerror(error)); close(net); - freeaddrinfo(ares); continue; } if (bind(net, ares->ai_addr, ares->ai_addrlen) < 0) { |