From 18595b28d6594317f453f679cad3b0bf7cb6a644 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Mon, 30 Apr 2001 10:00:05 +0000 Subject: don't freeaddrinfo if getaddrinfo fails; ok deraadt@,itojun@ --- usr.bin/telnet/commands.c | 3 +-- 1 file changed, 1 insertion(+), 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) { -- cgit v1.2.3