Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
70b065bd
Commit
70b065bd
authored
Nov 16, 1999
by
Bob Halley
Browse files
bits was being ORed with the mask instead of ANDed.
Update the entry's flags too.
parent
4f6dd514
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/adb.c
View file @
70b065bd
...
...
@@ -3427,7 +3427,15 @@ dns_adb_changeflags(dns_adb_t *adb, dns_adbaddrinfo_t *addr,
bucket
=
addr
->
entry
->
lock_bucket
;
LOCK
(
&
adb
->
entrylocks
[
bucket
]);
addr
->
flags
=
(
addr
->
flags
&
~
mask
)
|
(
bits
|
mask
);
addr
->
entry
->
flags
=
(
addr
->
entry
->
flags
&
~
mask
)
|
(
bits
&
mask
);
/*
* Note that we do not update the other bits in addr->flags with
* the most recent values from addr->entry->flags.
*
* XXXRTH I think this is what we want, because otherwise flags
* that the caller didn't ask to change could be updated.
*/
addr
->
flags
=
(
addr
->
flags
&
~
mask
)
|
(
bits
&
mask
);
UNLOCK
(
&
adb
->
entrylocks
[
bucket
]);
}
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