fix libevent-1.3 and older bug

git-svn-id: file:///svn/unbound/trunk@1441 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2009-01-15 13:48:03 +00:00
parent ce2067ec6b
commit 45abfa8720
2 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,7 @@
- bug #229: fixup configure checks for compilation with Solaris
Sun cc compiler, ./configure CC=/opt/SUNWspro/bin/cc
- fixup suncc warnings.
- fix bug where unbound could crash using libevent 1.3 and older.
14 January 2009: Wouter
- 1.2.1 feature: negative caching for failed queries.

View file

@ -169,12 +169,14 @@ comm_base_create(int sigs)
return NULL;
}
comm_base_now(b);
/* avoid event_get_method call which causes crashes even when
* not printing, because its result is passed */
verbose(VERB_ALGO, "libevent %s uses %s method.",
event_get_version(),
#ifdef HAVE_EVENT_BASE_GET_METHOD
event_base_get_method(b->eb->base)
#else
event_get_method()
"not_obtainable"
#endif
);
return b;