+Sun Jul 2 18:59:53 1995 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * recvauth.c (krb5_recvauth): recvauth should send an error reply
+ if problem is not zero. Removed if that caused it to only send a
+ reply on success.
+
Fri Jun 16 22:11:21 1995 Theodore Y. Ts'o (tytso@dcl)
* get_in_tkt.c (krb5_get_in_tkt): Allow the credentials cache
memset((char *)&error, 0, sizeof(error));
krb5_us_timeofday(context, &error.stime, &error.susec);
error.server = server;
+
+
+
+
+
error.error = problem - ERROR_TABLE_BASE_krb5;
if (error.error > 127)
error.error = KRB_ERR_GENERIC;
outbuf.data = 0;
}
- if (!problem) {
- retval = krb5_write_message(context, fd, &outbuf);
- if (outbuf.data)
- krb5_xfree(outbuf.data);
- if (retval)
- goto cleanup;
- } else {
+ retval = krb5_write_message(context, fd, &outbuf);
+ if (outbuf.data) {
+ krb5_xfree(outbuf.data);
/* We sent back an error, we need cleanup then return */
retval = problem;
goto cleanup;
}
+ if (retval)
+ goto cleanup;
/* Here lies the mutual authentication stuff... */
if ((ap_option & AP_OPTS_MUTUAL_REQUIRED)) {