diff --git a/doc/Changelog b/doc/Changelog index aef52675a..94e3d6e16 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -6,6 +6,7 @@ - respect -v for NXDOMAINs. - updated ldns-src.tar.gz with ldns-trunk today (1.2.2 fixes). - size_t to int for portability of the header file. + - fixup bogus handling. 6 December 2007: Wouter - library resolution works in foreground mode, unbound-host app diff --git a/libunbound/worker.c b/libunbound/worker.c index 2d2c426be..c890bb2f1 100644 --- a/libunbound/worker.c +++ b/libunbound/worker.c @@ -291,7 +291,7 @@ libworker_fg_done_cb(void* arg, int rcode, ldns_buffer* buf, enum sec_status s) d->q->res->rcode = (int)LDNS_RCODE_WIRE(d->q->msg); if(d->q->res->rcode == LDNS_RCODE_NXDOMAIN) d->q->res->nxdomain = 1; - if(d->q->msg_security == sec_status_bogus) + if(s == sec_status_bogus) d->q->res->bogus = 1; d->q->msg_security = s;