pull up r20296 from trunk
authorTom Yu <tlyu@mit.edu>
Mon, 14 Jul 2008 22:12:21 +0000 (22:12 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 14 Jul 2008 22:12:21 +0000 (22:12 +0000)
 r20296@cathode-dark-space:  raeburn | 2008-03-28 21:09:00 -0400
 ticket: new
 subject: Coverity CID 101: Fix minor bounds check error.
 target_version: 1.6.4
 tags: pullup

 Coverity CID 101: Fix minor bounds check error.

ticket: 5933
version_fixed: 1.6.4

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@20520 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/kerberos_v4.c

index 2c4b567055fd3bd5de518df8cbb9f9a34dc0415d..6957c0178037f886bbc209d1c0189012507cf33c 100644 (file)
@@ -811,7 +811,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));