all the addresses in hp have been iterated through to avoid
smashing. [krb5-appl/516]
+ * kcmd.c (k4cmd): Move call to krb_realmofhost() to avoid smashing
+ hp.
+
Wed Feb 17 17:24:11 1999 Tom Yu <tlyu@mit.edu>
* klogind.M: Document things a little better, including new
strcpy(host_save, hp->h_name);
*ahost = host_save;
- /* If realm is null, look up from table */
- if ((realm == NULL) || (realm[0] == '\0')) {
- realm = krb_realmofhost(host_save);
- }
-
#ifdef POSIX_SIGNALS
sigemptyset(&urgmask);
sigaddset(&urgmask, SIGURG);
#endif /* POSIX_SIGNALS */
return (-1);
}
+ /* If realm is null, look up from table */
+ if ((realm == NULL) || (realm[0] == '\0')) {
+ realm = krb_realmofhost(host_save);
+ }
lport--;
if (fd2p == 0) {
write(s, "", 1);