-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add a function to parse a srv reply with ttl #393
Closed
Closed
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
7a26cb6
add a function to parse a srv reply with ttl
kylebevans 4c9f2b6
remove print statements
kylebevans ab66778
make ares_parse_srv_reply a wrapper for cares_parse_srv_reply
kylebevans 73d8bf5
return const char* from cares_srv_reply_get_host
kylebevans eb34dbe
use ares_strdup in ares_parse_srv_reply to copy host string
kylebevans a86be7e
add new structs and parse functions to support TTL for these RRs:
kylebevans ce230f7
check hostent->h_addr_list[0] before free
kylebevans 7078113
Merge branch 'master' into kylebevans-ttl
kylebevans 3d06d06
fix loop off by one for freeing h_aliases
kylebevans a6c585c
modify ptr parsing to use the last hostname as h_name
kylebevans b55ccb9
use ptr_curr instead of ptr_out to get h_name
kylebevans 08de712
fix memory leaks
kylebevans 7eae6d8
remove debug prints and fix unrelated Container test leak
kylebevans a82fed6
Merge branch 'main' into kylebevans-ttl
kylebevans 3179732
406 - Validate hostnames in DNS responses
kylebevans 1e03b81
fix a missed a conflict in ares.h
kylebevans d36bec7
add is_hostname parameter back in one spot
kylebevans 2814894
change struct cares_ to just cares_ for declarations
kylebevans 7fcb191
change ttl in ares_uri_reply to be unsigned int
kylebevans 487d072
change ARES_DATATYPE_C prefix to CARES_DATATYPE_ prefix
kylebevans 97143cc
return const from cares_get_next functions
kylebevans 699a9cd
create cares_memdup function as sugar for malloc/memcpy pattern
kylebevans 3286a5d
save progress
kylebevans aed6a71
save progress
kylebevans baf30b8
save progress
kylebevans 6983bc3
add free routine for container
kylebevans 39c8e55
add malloc routine for container
kylebevans 385a3fe
change cares_parse_srv_reply to use container
kylebevans 697b9fd
change ares_parse_srv_reply to use container
kylebevans de092f3
fix errors and warnings
kylebevans 9583762
fix errors and warnings
kylebevans e22efd5
add debugging
kylebevans f349105
fix crashes and add debugging
kylebevans 867e3f7
fix crashes
kylebevans 0f5ba50
remove print statements
kylebevans 9268be0
Add build/test instructions for asan
kylebevans 13aec44
update build/test instructions for asan
kylebevans 86daca3
update build/test instructions for asan
kylebevans 9f7b8b9
update build/test instructions for asan
kylebevans 487cb0c
attempt to fix leak
kylebevans 84d87cb
attempt to fix leak
kylebevans f131cf2
add missing break statement
kylebevans 8bca0fa
free srv_host on error
kylebevans 979f715
add debugging
kylebevans 183a999
fix leak if no srv rr type
kylebevans e247b6e
add fuzzing loop instrution
kylebevans e1bb47d
fix typo for cares_free_container.h
kylebevans 73248f7
remove debugging print statements
kylebevans 337db1d
Update instructions for lsan
kylebevans be37e6a
Update instructions for lsan
kylebevans e82ff03
change srv to csrv
kylebevans File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix crashes
- Loading branch information
commit 867e3f7458920f0c900f23d17539685fb4eda4d8
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please explain why T_CNAME is excluded? A short comment in the code would be great.
(Same for CAA, MX, NAPTR, NS, PTR, SRV, TXT)