mirror of
https://github.com/darkk/redsocks.git
synced 2025-08-29 21:25:30 +00:00
Fix bug introduced in 45cab3.
This commit is contained in:
parent
94c96a60ef
commit
bce12d59dd
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user