diff options
author | Rich Felker <dalias@aerifal.cx> | 2022-10-19 14:02:48 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2022-10-19 14:02:48 -0400 |
commit | 63402be229facae2d0de9c5943a6ed25246fd021 (patch) | |
tree | 217f28e942d5ed28add09710cf07a9a4b440543e /src/passwd/getspnam.c | |
parent | 0a7b4323b0f2b944dbd47a813c0c6e6813e7fd67 (diff) | |
download | musl-63402be229facae2d0de9c5943a6ed25246fd021.tar.gz |
clean up dns_parse_callback
the only functional change here should be that MAXADDRS is only
checked for RRs that provide address results, so that a CNAME which
appears after an excessive number of address RRs does not get ignored.
I'm not aware of any servers that order the RRs this way, and it may
even be forbidden to do so, but I prefer having the callback logic not
be order dependent.
other than that, the motivation for this change is that the A and AAAA
cases were mostly duplicate code that could be combined as a single
code path.
Diffstat (limited to 'src/passwd/getspnam.c')
0 files changed, 0 insertions, 0 deletions