use; if that fails, fall back on what gethostbyname returns
earlier.
[170]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9363
dc483132-0cff-0310-8789-
dd5450dbe970
+Sun Nov 10 17:34:40 1996 Sam Hartman <hartmans@mit.edu>
+
+ * commands.c (tn): Reverse resolve address to deal with dialup
+ pools [krb5-libs/170]
+
Fri Nov 1 00:49:21 1996 Sam Hartman <hartmans@mit.edu>
* main.c: Implement Type Of Service patch from jhawk. [57]
return 0;
}
connected++;
+ host = gethostbyaddr((char *) &sin.sin_addr, sizeof(struct in_addr), sin.sin_family);
+ if (host) {
+ strncpy(_hostname, host->h_name, sizeof(_hostname));
+ _hostname[sizeof(_hostname)-1] = '\0';
+ hostname = _hostname;
+ }
+
#if defined(AUTHENTICATION) || defined(ENCRYPTION)
auth_encrypt_connect(connected);
#endif /* defined(AUTHENTICATION) || defined(ENCRYPTION) */