From b1f7a63e41ad2534de15405ae17fd0c9c2ee52e8 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Fri, 6 Oct 2023 13:04:20 +1300 Subject: [PATCH] krb5: Fix error code mapping Found by Coverity (Samba CID 1518726). Signed-off-by: Joseph Sutton --- lib/krb5/kx509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/kx509.c b/lib/krb5/kx509.c index 7525739f6..3bacdf10d 100644 --- a/lib/krb5/kx509.c +++ b/lib/krb5/kx509.c @@ -1033,7 +1033,7 @@ rd_kx509_resp(krb5_context context, code = 0; /* No error */ } else if (r.error_code < 0) { code = KRB5KRB_ERR_GENERIC; /* ??? */ - } else if (r.error_code <= KX509_ERR_SRV_OVERLOADED) { + } else if (r.error_code <= KX509_ERR_SRV_OVERLOADED - ERROR_TABLE_BASE_kx59) { /* * RFC6717 (kx509) error code. These are actually not used on the * wire in any existing implementations that we are aware of. Just