aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2008-08-11 15:08:52 +0000
committerTom Yu <tlyu@mit.edu>2008-08-11 15:08:52 +0000
commit60ec86205b522fa9809765eb997164ec1c112270 (patch)
tree7b4be8aa54dcf8fe6fc4bd11620b03243e0ec12f
parentea8cdab525d31c461e3137043b1cec60e686cd65 (diff)
downloadkrb5-60ec86205b522fa9809765eb997164ec1c112270.zip
krb5-60ec86205b522fa9809765eb997164ec1c112270.tar.gz
krb5-60ec86205b522fa9809765eb997164ec1c112270.tar.bz2
pull up r20573 from trunk
r20573@cathode-dark-space: jaltman | 2008-07-23 11:09:15 -0400 ticket: 6047 tags: pullup The NIM error reporting functions (in src/windows/identity/kherr ) keep track of the the error message with the highest severity level that was reported for a specific error reporting context. However, if another error message of the same severity is reported, the error message being tracked will be updated to be the newly received error. The user will often only be notified of the error message that was tracked for a specific operation. Therefore, tracking the last message with the highest priority has the unfortunate side-effect of not reporting the cause of a failure. This patch changes the condition for updating the tracked error message to be the first message with the highest severity. ticket: 6047 version_fixed: 1.6.4 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@20641 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/windows/identity/kherr/kherr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/identity/kherr/kherr.c b/src/windows/identity/kherr/kherr.c
index 8c43fd8..006feb3 100644
--- a/src/windows/identity/kherr/kherr.c
+++ b/src/windows/identity/kherr/kherr.c
@@ -474,7 +474,7 @@ add_event(kherr_context * c, kherr_event * e)
}
QPUT(c,e);
- if(c->severity >= e->severity) {
+ if(c->severity > e->severity) {
if (e->severity <= KHERR_ERROR)
notify_ctx_event(KHERR_CTX_ERROR, c);