mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-17 21:25:50 +02:00
- Fix integer overflow in infra-cache-max-rtt calculation.
Thanks to Qifan Zhang, Palo Alto Networks, for the report.
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
lookups are in progress, for a primary name. Also after the
|
||||
change, it no longer picks up the old results. Thanks to
|
||||
Qifan Zhang, Palo Alto Networks, for the report.
|
||||
- Fix integer overflow in infra-cache-max-rtt calculation.
|
||||
Thanks to Qifan Zhang, Palo Alto Networks, for the report.
|
||||
|
||||
12 June 2026: Wouter
|
||||
- Fix that for auth-zone and rpz zones the allow-notify
|
||||
|
||||
+6
-1
@@ -46,6 +46,7 @@
|
||||
#ifdef HAVE_TIME_H
|
||||
#include <time.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
#include "util/log.h"
|
||||
#include "util/configyyrename.h"
|
||||
#include "util/config_file.h"
|
||||
@@ -533,7 +534,11 @@ probe_maxrto(int useful_server_top_timeout) {
|
||||
int config_apply_max_rtt(int max_rtt)
|
||||
{
|
||||
USEFUL_SERVER_TOP_TIMEOUT = max_rtt;
|
||||
BLACKLIST_PENALTY = max_rtt*4;
|
||||
BLACKLIST_PENALTY =
|
||||
#ifdef INT_MAX
|
||||
(max_rtt > INT_MAX/4) ? INT_MAX :
|
||||
#endif
|
||||
max_rtt*4;
|
||||
PROBE_MAXRTO = probe_maxrto(max_rtt);
|
||||
return max_rtt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user