Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
c52683ae
Commit
c52683ae
authored
Mar 23, 2001
by
Andreas Gustafsson
Browse files
'serial-query-rate 1;' caused an assertion failure
parent
4e146b2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/zone.c
View file @
c52683ae
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.c,v 1.31
2
2001/03/
19 22:34:09 bwelling
Exp $ */
/* $Id: zone.c,v 1.31
3
2001/03/
23 00:33:28 gson
Exp $ */
#include
<config.h>
...
...
@@ -5756,7 +5756,7 @@ dns_zonemgr_dbdestroyed(isc_task_t *task, isc_event_t *event) {
void
dns_zonemgr_setserialqueryrate
(
dns_zonemgr_t
*
zmgr
,
unsigned
int
value
)
{
isc_interval_t
interval
;
isc_uint32_t
ns
;
isc_uint32_t
s
,
ns
;
isc_uint32_t
pertic
;
isc_result_t
result
;
...
...
@@ -5765,15 +5765,21 @@ dns_zonemgr_setserialqueryrate(dns_zonemgr_t *zmgr, unsigned int value) {
if
(
value
==
0
)
value
=
1
;
if
(
value
<
10
)
{
if
(
value
==
1
)
{
s
=
1
;
ns
=
0
;
pertic
=
1
;
}
else
if
(
value
<
10
)
{
s
=
0
;
ns
=
1000000000
/
value
;
pertic
=
1
;
}
else
{
s
=
0
;
ns
=
(
1000000000
/
value
)
*
10
;
pertic
=
10
;
}
isc_interval_set
(
&
interval
,
0
,
ns
);
isc_interval_set
(
&
interval
,
s
,
ns
);
result
=
isc_ratelimiter_setinterval
(
zmgr
->
rl
,
&
interval
);
RUNTIME_CHECK
(
result
==
ISC_R_SUCCESS
);
isc_ratelimiter_setpertic
(
zmgr
->
rl
,
pertic
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment