Date: Tue, 22 Jun 1999 04:20:06 -0700 (PDT) From: Sheldon Hearn <sheldonh@uunet.co.za> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/10030: Kerberized telnet fails to encrypt when a hostname alias is used (patch included) Message-ID: <199906221120.EAA34485@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/10030; it has been noted by GNATS.
From: Sheldon Hearn <sheldonh@uunet.co.za>
To: mystify@friley-184-92.res.iastate.edu
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/10030: Kerberized telnet fails to encrypt when a hostname alias is used (patch included)
Date: Tue, 22 Jun 1999 13:16:54 +0200
Hi Patrick,
It looks like you cut'n'pasted your patch, because the whitespace has
gone for a ball of chalk.
I've included a fixed version of your patch here.
Ciao,
Sheldon.
PS: You'll notice I left out a pair of braces, changed your runover
indentation and removed the blank lines and comment. I did this to
make the patch fit the style of the original source.
Index: commands.c
===================================================================
RCS file: /home/ncvs/src/crypto/telnet/telnet/commands.c,v
retrieving revision 1.2
diff -u -d -r1.2 commands.c
--- commands.c 1997/09/07 07:02:08 1.2
+++ commands.c 1999/06/22 11:12:59
@@ -2382,6 +2382,10 @@
memmove((caddr_t)&sin.sin_addr, host->h_addr, host->h_length);
#endif /* defined(h_addr) */
strncpy(_hostname, host->h_name, sizeof(_hostname));
+ host = gethostbyaddr((char*) &sin.sin_addr,
+ sizeof(sin.sin_addr), AF_INET);
+ if (host)
+ strncpy(_hostname, host->h_name, sizeof(_hostname));
_hostname[sizeof(_hostname)-1] = '\0';
hostname = _hostname;
} else {
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906221120.EAA34485>
