From 85306a1255304169c251b540507e3828f6aa01c0 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 29 Mar 2008 01:09:00 +0000 Subject: [PATCH] Coverity CID 101: Fix minor bounds check error Coverity CID 101: Fix minor bounds check error. ticket: new target_version: 1.6.4 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20296 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/kerberos_v4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c index 1ac951360..b2bfa4b54 100644 --- a/src/kdc/kerberos_v4.c +++ b/src/kdc/kerberos_v4.c @@ -822,7 +822,7 @@ kerberos_v4(struct sockaddr_in *client, KTEXT pkt) auth->mbz = 0; /* pkt->mbz already zeroed */ auth->length = 4 + strlen((char *)pkt->dat + 3); - if (auth->length + 1 > MAX_KTXT_LEN) { + if (auth->length + 1 >= MAX_KTXT_LEN) { lt = klog(L_KRB_PERR, "APPL request with realm length too long from %s", inet_ntoa(client_host)); -- 2.26.2