Add missing return value in event_base_foreach_event

Fix for github issue nmathewson/Libevent #65

Found by Joachim Bauch
This commit is contained in:
Nick Mathewson 2012-09-10 13:43:26 -04:00
parent 232055ef49
commit ffe1643b98

View File

@ -3314,7 +3314,7 @@ event_base_foreach_event(struct event_base *base,
{
int r;
if ((!fn) || (!base)) {
return;
return -1;
}
EVBASE_ACQUIRE_LOCK(base, th_base_lock);
r = event_base_foreach_event_nolock_(base, fn, arg);