diff options
author | ajs <ajs> | 2005-04-10 15:01:56 +0000 |
---|---|---|
committer | ajs <ajs> | 2005-04-10 15:01:56 +0000 |
commit | ec551f56e6a7cdf09680f19edb9917682f712e04 (patch) | |
tree | 469186098235ade533e8196bfa5bef437c6ed23d /tests/test-buffer.c | |
parent | f5a171b9e64ffec0a20cac080243b65329471b33 (diff) | |
download | quagga-ec551f56e6a7cdf09680f19edb9917682f712e04.tar.bz2 quagga-ec551f56e6a7cdf09680f19edb9917682f712e04.tar.xz |
2005-04-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* zserv.c (zebra_client_read): Fix bug: first read attempt should
read ZEBRA_HEADER_SIZE minus the number of bytes already read.
Improve efficiency by maintaining a calculation of the number
of bytes read instead of calling stream_get_endp multiple times.
If message length is too small, issue a warning message (not debug)
before closing the connection. And also check that message length
is not too big.
Diffstat (limited to 'tests/test-buffer.c')
0 files changed, 0 insertions, 0 deletions