mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
fix regression test; oops
svn:r749
This commit is contained in:
parent
682adc443b
commit
c58a01a23b
@ -1456,9 +1456,6 @@ bufferevent_input_filter(struct evbuffer *src, struct evbuffer *dst,
|
||||
const unsigned char *buffer;
|
||||
int i;
|
||||
|
||||
if (state == BEV_FREE_DATA)
|
||||
return (BEV_OK);
|
||||
|
||||
buffer = evbuffer_pullup(src, EVBUFFER_LENGTH(src));
|
||||
for (i = 0; i < EVBUFFER_LENGTH(src); i += 2) {
|
||||
assert(buffer[i] == 'x');
|
||||
@ -1481,9 +1478,6 @@ bufferevent_output_filter(struct evbuffer *src, struct evbuffer *dst,
|
||||
const unsigned char *buffer;
|
||||
int i;
|
||||
|
||||
if (state == BEV_FREE_DATA)
|
||||
return (BEV_OK);
|
||||
|
||||
buffer = evbuffer_pullup(src, EVBUFFER_LENGTH(src));
|
||||
for (i = 0; i < EVBUFFER_LENGTH(src); ++i) {
|
||||
evbuffer_add(dst, "x", 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user