1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

- A patch from developer

* Fix crash when iterator without validator used
This commit is contained in:
Sergey Matveychuk 2009-12-01 16:18:41 +00:00
parent 15cf88dd2c
commit 025a8e2a2a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=245063
2 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= unbound
PORTVERSION= 1.4.0
PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= http://unbound.net/downloads/

View File

@ -0,0 +1,13 @@
Index: validator/autotrust.c
===================================================================
--- validator/autotrust.c (revision 1923)
+++ validator/autotrust.c (revision 1924)
@@ -100,6 +100,8 @@
autr_get_num_anchors(struct val_anchors* anchors)
{
size_t res = 0;
+ if(!anchors)
+ return 0;
lock_basic_lock(&anchors->lock);
if(anchors->autr)
res = anchors->autr->probe.count;