#endif
/* Finish session in wmtp */
pty_logwtmp(ttyn,"","");
-if (ccache)
- krb5_cc_destroy(bsd_context, ccache);
- ccache = NULL;
-
+ if (ccache)
+ krb5_cc_destroy(bsd_context, ccache);
exit(0);
}
#if defined(HAVE_SETSID)&&(!defined(ULTRIX))
exit(1);
signout_please:
-if (ccache)
- krb5_cc_destroy(bsd_context, ccache);
+ if (ccache)
+ krb5_cc_destroy(bsd_context, ccache);
ccache = NULL;
pty_logwtmp(ttyn,"","");
exit(1);
pty_logwtmp(ttyn,"","");
syslog(LOG_INFO ,"Shell process completed.");
-if (ccache)
- krb5_cc_destroy(bsd_context, ccache);
+ if (ccache)
+ krb5_cc_destroy(bsd_context, ccache);
exit(0);
}
if (isupper(*cp))
*cp = tolower(*cp);
- if (retval = krb5_get_host_realm(context, remote_host, &hrealms)) {
- free(remote_host);
- return retval;
- }
- if (!hrealms[0]) {
- free(remote_host);
- krb5_xfree(hrealms);
- return KRB5_ERR_HOST_REALM_UNKNOWN;
- }
- realm = hrealms[0];
-
+ if (retval = krb5_get_host_realm(context, remote_host, &hrealms)) {
+ free(remote_host);
+ return retval;
+ }
+ if (!hrealms[0]) {
+ free(remote_host);
+ krb5_xfree(hrealms);
+ return KRB5_ERR_HOST_REALM_UNKNOWN;
+ }
+ realm = hrealms[0];
retval = krb5_build_principal(context, ret_princ, strlen(realm),
realm, sname, remote_host,