]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-dns-domain.c
shared: fix handling of suffix "." in dns_name_compare_func()
authorLennart Poettering <lennart@poettering.net>
Sat, 26 Dec 2015 11:43:28 +0000 (12:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 27 Dec 2015 00:41:39 +0000 (01:41 +0100)
commit5651285934ade033c0662afbbee940855f6bd2fb
treed75ba475e940e478eabb5d25a63f57e6ef47c235
parent735323d9d3cddcd08247e541ccfdd8285c87c701
shared: fix handling of suffix "." in dns_name_compare_func()

All our other domain name handling functions make no destinction between
domain names that end in a dot plus a NUL, or those just ending in a
NUL. Make sure dns_name_compare_func() and dns_label_unescape_suffix()
do the same.
src/shared/dns-domain.c
src/test/test-dns-domain.c