0
0
mirror of https://github.com/darkk/redsocks.git synced 2025-08-28 20:55:30 +00:00

Fix bug introduced in 45cab3.

This commit is contained in:
Leonid Evdokimov 2010-12-02 23:30:21 +02:00
parent 94c96a60ef
commit bce12d59dd

View File

@ -452,7 +452,8 @@ int redsocks_write_helper_ex_plain(
if (!buff)
goto fail;
len = bufferevent_write_buffer(client->relay, buff);
assert(!client || buffev == client->relay);
len = bufferevent_write_buffer(buffev, buff);
if (len < 0) {
if (client)
redsocks_log_errno(client, LOG_ERR, "bufferevent_write_buffer");