Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix redsocks_evbuffer_readline with libevent 2.1
_EVENT_NUMERIC_VERSION was renamed to EVENT__NUMERIC_VERSION in libevent 2.1. As a result, redsocks_evbuffer_readline would end up using evbuffer_readline(buf), which causes client connections to hang indefinitely. Switch the check to using LIBEVENT_VERSION_NUMBER instead. LIBEVENT_VERSION_NUMBER has been around since libevent 2.0.3 and redsocks is already using it in other parts of the code. Fixes darkk#107, darkk#122.
- Loading branch information