From f5801700f44a8478aa0fbddd285bab7ae2385f70 Mon Sep 17 00:00:00 2001
From: dd
Date: Wed, 2 Oct 2002 00:27:14 +0000
Subject: [PATCH] Permit the argument to the -s option to be a hostname. I see
no reason to restrict this to a numeric address.
PR: 41841
Submitted by: Dmitry Pryanishnikov ,
Maxim Maximov
---
contrib/telnet/telnet/commands.c | 1 -
crypto/telnet/telnet/commands.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c
index fa5319983aec..f0372a0a5856 100644
--- a/contrib/telnet/telnet/commands.c
+++ b/contrib/telnet/telnet/commands.c
@@ -2238,7 +2238,6 @@ tn(int argc, char *argv[])
if (src_addr != NULL) {
memset(&hints, 0, sizeof(hints));
- hints.ai_flags = AI_NUMERICHOST;
hints.ai_family = family;
hints.ai_socktype = SOCK_STREAM;
error = getaddrinfo(src_addr, 0, &hints, &src_res);
diff --git a/crypto/telnet/telnet/commands.c b/crypto/telnet/telnet/commands.c
index fa5319983aec..f0372a0a5856 100644
--- a/crypto/telnet/telnet/commands.c
+++ b/crypto/telnet/telnet/commands.c
@@ -2238,7 +2238,6 @@ tn(int argc, char *argv[])
if (src_addr != NULL) {
memset(&hints, 0, sizeof(hints));
- hints.ai_flags = AI_NUMERICHOST;
hints.ai_family = family;
hints.ai_socktype = SOCK_STREAM;
error = getaddrinfo(src_addr, 0, &hints, &src_res);