+Wed Apr 26 21:09:34 1995 Chris Provenzano (proven@mit.edu)
+
+ * kcmd.c (kcmd()) : Don't use hp->h_name use host_save instead.
+
Wed Apr 26 17:43:08 1995 Mark Eichin <eichin@cygnus.com>
* logutil.c (EMPTY): linux has UT_UNKNOWN, not EMPTY.
return (-1);
}
- host_save = (char *)malloc(strlen(hp->h_name) + 1);
- if ( host_save == (char *) 0){
+ if ((host_save = malloc(strlen(hp->h_name) + 1)) == NULL) {
fprintf(stderr,"kcmd: no memory\n");
return(-1);
}
continue;
}
#endif /* !(defined(ultrix) || defined(sun)) */
- perror(hp->h_name);
+ perror(host_save);
#ifdef POSIX_SIGNALS
sigprocmask(SIG_SETMASK, &oldmask, (sigset_t*)0);
#else
if (options & OPTS_FORWARD_CREDS) { /* Forward credentials */
if (status = get_for_creds(bsd_context, auth_context,
- hp->h_name,
+ host_save,
ret_cred->client,
/* Forwardable TGT? */
options & OPTS_FORWARDABLE_CREDS,