mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
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:
parent
ce2067ec6b
commit
45abfa8720
2 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue