aboutsummaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2008-07-23 15:09:15 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2008-07-23 15:09:15 +0000
commit814601908de3d256e9a01a2b416c283ba2fded97 (patch)
tree73217f8954c489d49d052611e60c984d5af55bf0 /src/windows
parent0b4a03f2df21bfc7c00fdf6b0a8d6f5b5b77b524 (diff)
downloadkrb5-814601908de3d256e9a01a2b416c283ba2fded97.zip
krb5-814601908de3d256e9a01a2b416c283ba2fded97.tar.gz
krb5-814601908de3d256e9a01a2b416c283ba2fded97.tar.bz2
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 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20573 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows')
-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);