-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sending a reference to a dns.Envelope (&env) to a channel and then resetting the env variable to a fresh envelope causes the reference sent over the channel to also reference an empty envelope. Now we maintain a separate slice of dns.RR records and create a new envelope on each send instead. Passing the dns.RR slice over the channel is OK as even if it internally points to data, the slice header itself will be copied and is not affected when we reset "rrs" to a new empty slice.
- Loading branch information
Showing
1 changed file
with
34 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters