summaryrefslogtreecommitdiffstats
path: root/src/kdc/do_as_req.c
diff options
context:
space:
mode:
authorZhanna Tsitkov <tsitkova@mit.edu>2013-09-19 13:11:15 -0400
committerZhanna Tsitkov <tsitkova@mit.edu>2013-09-23 12:06:47 -0400
commit58ea3bdbfe6330225a2d58dfb00ccf1ad70617fe (patch)
tree490308667d2787d1d0a28ebb3d8842a90367c5ed /src/kdc/do_as_req.c
parent66b141745fc56bbdb7b738582ba7e1cce1e503c8 (diff)
downloadkrb5-58ea3bdbfe6330225a2d58dfb00ccf1ad70617fe.tar.gz
krb5-58ea3bdbfe6330225a2d58dfb00ccf1ad70617fe.tar.xz
krb5-58ea3bdbfe6330225a2d58dfb00ccf1ad70617fe.zip
Err codes in KRB_ERROR protocol messages are < 128
If the error code is out of [0,127] range, assign it to KRB_ERR_GENERIC. This fix is to correct the previous behavior with [0,128] range. For more information see krb5_err.et
Diffstat (limited to 'src/kdc/do_as_req.c')
-rw-r--r--src/kdc/do_as_req.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kdc/do_as_req.c b/src/kdc/do_as_req.c
index 11ba5a283..8790ec403 100644
--- a/src/kdc/do_as_req.c
+++ b/src/kdc/do_as_req.c
@@ -351,7 +351,7 @@ egress:
}
if (errcode != KRB5KDC_ERR_DISCARD) {
errcode -= ERROR_TABLE_BASE_krb5;
- if (errcode < 0 || errcode > 128)
+ if (errcode < 0 || errcode > KRB_ERR_MAX)
errcode = KRB_ERR_GENERIC;
errcode = prepare_error_as(state->rstate, state->request,