Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
fd447061
Commit
fd447061
authored
Jan 05, 2004
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1547. [bug] Named wasted memory recording duplicate lame zone
entries. [RT #9341]
parent
d6f0e450
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
CHANGES
CHANGES
+3
-0
lib/dns/adb.c
lib/dns/adb.c
+17
-5
No files found.
CHANGES
View file @
fd447061
1547. [bug] Named wasted memory recording duplicate lame zone
entries. [RT #9341]
1546. [bug] We were rejecting valid secure CNAME to negative
answers.
...
...
lib/dns/adb.c
View file @
fd447061
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: adb.c,v 1.21
1
200
3/10/25 00:31:08 jinmei
Exp $ */
/* $Id: adb.c,v 1.21
2
200
4/01/05 06:44:30 marka
Exp $ */
/*
* Implementation notes
...
...
@@ -3313,20 +3313,32 @@ dns_adb_marklame(dns_adb_t *adb, dns_adbaddrinfo_t *addr, dns_name_t *zone,
{
dns_adbzoneinfo_t
*
zi
;
int
bucket
;
isc_result_t
result
=
ISC_R_SUCCESS
;
REQUIRE
(
DNS_ADB_VALID
(
adb
));
REQUIRE
(
DNS_ADBADDRINFO_VALID
(
addr
));
REQUIRE
(
zone
!=
NULL
);
bucket
=
addr
->
entry
->
lock_bucket
;
LOCK
(
&
adb
->
entrylocks
[
bucket
]);
zi
=
ISC_LIST_HEAD
(
addr
->
entry
->
zoneinfo
);
while
(
zi
!=
NULL
&&
dns_name_equal
(
zone
,
&
zi
->
zone
))
zi
=
ISC_LIST_NEXT
(
zi
,
plink
);
if
(
zi
!=
NULL
)
{
if
(
expire_time
>
zi
->
lame_timer
)
zi
->
lame_timer
=
expire_time
;
goto
unlock
;
}
zi
=
new_adbzoneinfo
(
adb
,
zone
);
if
(
zi
==
NULL
)
return
(
ISC_R_NOMEMORY
);
if
(
zi
==
NULL
)
{
result
=
ISC_R_NOMEMORY
;
goto
unlock
;
}
zi
->
lame_timer
=
expire_time
;
bucket
=
addr
->
entry
->
lock_bucket
;
LOCK
(
&
adb
->
entrylocks
[
bucket
]);
ISC_LIST_PREPEND
(
addr
->
entry
->
zoneinfo
,
zi
,
plink
);
unlock:
UNLOCK
(
&
adb
->
entrylocks
[
bucket
]);
return
(
ISC_R_SUCCESS
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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