summaryrefslogtreecommitdiff
path: root/usr.sbin/unbound/libunbound
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2018-12-04 12:05:08 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2018-12-04 12:05:08 +0000
commit6d4fc0ad67ec8a4e308d8fd18da37330f106af07 (patch)
tree16423e3bf0c841a8fcb1d6a4a4ec4700a3bf0b35 /usr.sbin/unbound/libunbound
parentf0079c675f8aff6937ad27614631f259e7cba2c2 (diff)
merge unbound 1.8.2
Diffstat (limited to 'usr.sbin/unbound/libunbound')
-rw-r--r--usr.sbin/unbound/libunbound/libworker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/unbound/libunbound/libworker.c b/usr.sbin/unbound/libunbound/libworker.c
index 065f0a7b141..a886f9a8811 100644
--- a/usr.sbin/unbound/libunbound/libworker.c
+++ b/usr.sbin/unbound/libunbound/libworker.c
@@ -657,8 +657,8 @@ libworker_event_done_cb(void* arg, int rcode, sldns_buffer* buf,
sec = 1;
else if(s == sec_status_secure)
sec = 2;
- (*cb)(cb_arg, rcode, (void*)sldns_buffer_begin(buf),
- (int)sldns_buffer_limit(buf), sec, why_bogus, was_ratelimited);
+ (*cb)(cb_arg, rcode, (buf?(void*)sldns_buffer_begin(buf):NULL),
+ (buf?(int)sldns_buffer_limit(buf):0), sec, why_bogus, was_ratelimited);
}
}