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:
parent
15cf88dd2c
commit
025a8e2a2a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=245063
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= unbound
|
||||
PORTVERSION= 1.4.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= dns
|
||||
MASTER_SITES= http://unbound.net/downloads/
|
||||
|
||||
|
13
dns/unbound/files/patch-validator-autotrust.c
Normal file
13
dns/unbound/files/patch-validator-autotrust.c
Normal 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;
|
Loading…
Reference in New Issue
Block a user