From 025a8e2a2a46d977143757deb7f34a71f71d730e Mon Sep 17 00:00:00 2001 From: Sergey Matveychuk Date: Tue, 1 Dec 2009 16:18:41 +0000 Subject: [PATCH] - A patch from developer * Fix crash when iterator without validator used --- dns/unbound/Makefile | 1 + dns/unbound/files/patch-validator-autotrust.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 dns/unbound/files/patch-validator-autotrust.c diff --git a/dns/unbound/Makefile b/dns/unbound/Makefile index 9c392c8ee038..6c9414dcad90 100644 --- a/dns/unbound/Makefile +++ b/dns/unbound/Makefile @@ -7,6 +7,7 @@ PORTNAME= unbound PORTVERSION= 1.4.0 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= http://unbound.net/downloads/ diff --git a/dns/unbound/files/patch-validator-autotrust.c b/dns/unbound/files/patch-validator-autotrust.c new file mode 100644 index 000000000000..95de254dce4c --- /dev/null +++ b/dns/unbound/files/patch-validator-autotrust.c @@ -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;