]> git.ipfire.org Git - thirdparty/systemd.git/commit
dns-domain: be more strict when encoding/decoding labels
authorLennart Poettering <lennart@poettering.net>
Sun, 29 Nov 2015 13:12:05 +0000 (14:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 30 Nov 2015 18:37:41 +0000 (19:37 +0100)
commit3b37fa735224e58fcc23c737b764d13e22c2885b
tree45fc4141398824a587a28116506184e5e405bf15
parentbca27e1729b496081b0fa4e2754f5fcdcc0efce5
dns-domain: be more strict when encoding/decoding labels

Labels of zero length are not OK, refuse them early on. The concept of a
"zero-length label" doesn't exist, a zero-length full domain name
however does (representing the root domain). See RFC 2181, Section 11.
src/shared/dns-domain.c
src/shared/dns-domain.h
src/test/test-dns-domain.c