From: Ken Raeburn Date: Mon, 20 Mar 2000 07:25:11 +0000 (+0000) Subject: jaltman fix for off-by-one error X-Git-Tag: krb5-1.3-alpha1~2171 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0ff7a202dce2154bf551255a5a926803e01e608b;p=krb5.git jaltman fix for off-by-one error git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12128 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index 040a9affe..121116133 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,3 +1,9 @@ +2000-03-20 Ken Raeburn + Jeffrey Altman + + * state.c (telrcv): Fix off-by-one error dealing with full + buffer. + 2000-02-24 Ezra Peisach * configure.in: Remove dependency on libdes425 when krb4 support diff --git a/src/appl/telnet/telnetd/state.c b/src/appl/telnet/telnetd/state.c index 0f3b161f2..83e1840f9 100644 --- a/src/appl/telnet/telnetd/state.c +++ b/src/appl/telnet/telnetd/state.c @@ -102,7 +102,7 @@ telrcv() #endif while (ncc > 0) { - if ((&ptyobuf[BUFSIZ] - pfrontp) < 2) + if ((&ptyobuf[BUFSIZ] - pfrontp) < 1) break; c = *netip++ & 0377, ncc--; #ifdef ENCRYPTION