diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2009-12-01 16:18:41 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2009-12-01 16:18:41 +0000 |
commit | 025a8e2a2a46d977143757deb7f34a71f71d730e (patch) | |
tree | d2e103962f5e62488b7345244f8551c0ed358866 /dns | |
parent | 15cf88dd2c46c54192c27bb7680015fe0e6d5bb3 (diff) | |
download | ports-025a8e2a2a46d977143757deb7f34a71f71d730e.tar.gz ports-025a8e2a2a46d977143757deb7f34a71f71d730e.zip |
- A patch from developer
* Fix crash when iterator without validator used
Notes
Notes:
svn path=/head/; revision=245063
Diffstat (limited to 'dns')
-rw-r--r-- | dns/unbound/Makefile | 1 | ||||
-rw-r--r-- | dns/unbound/files/patch-validator-autotrust.c | 13 |
2 files changed, 14 insertions, 0 deletions
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; |