* kdc/network.c (make_toolong_error): New function.
authorKen Raeburn <raeburn@mit.edu>
Mon, 26 Jun 2006 23:47:03 +0000 (23:47 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 26 Jun 2006 23:47:03 +0000 (23:47 +0000)
commitb0fcaccdf948c549c71a66f75d897ea25a909f67
tree53ed77bdc924ca41a48faf4f18cf651f6c60ad95
parent509e591a07a9d6f6053db1f2fb38ae37c602aa27
* kdc/network.c (make_toolong_error): New function.
(process_tcp_connection): If the specified length exceeds the internal limit,
stop reading and send back a FIELD_TOOLONG error.
* tests/dejagnu/krb-standalone/standalone.exp (doit): When testing TCP mode,
connect to the KDC and send a length of -1, and check that it sends back a
non-empty message.

ticket: 3923
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18233 dc483132-0cff-0310-8789-dd5450dbe970
src/kdc/network.c
src/tests/dejagnu/krb-standalone/standalone.exp