mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
bufferevent_ssl: check return value of the evbuffer_drain()
Refs: #1163
This commit is contained in:
parent
b926af2625
commit
41b5ab0f49
@ -385,7 +385,9 @@ do_write(struct bufferevent_ssl *bev_ssl, int atmost)
|
||||
}
|
||||
}
|
||||
if (n_written) {
|
||||
evbuffer_drain(output, n_written);
|
||||
if (evbuffer_drain(output, n_written))
|
||||
return OP_ERR | result;
|
||||
|
||||
if (bev_ssl->underlying)
|
||||
BEV_RESET_GENERIC_WRITE_TIMEOUT(bev);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user