1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-12 13:18:14 +03:00

dns-domain: use DNS_LABEL_MAX at one more place

This commit is contained in:
Yu Watanabe 2021-05-12 10:12:18 +09:00
parent 3d862ff066
commit 678d6b4f92

View File

@ -985,7 +985,7 @@ bool dns_service_name_is_valid(const char *name) {
l = strlen(name);
if (l <= 0)
return false;
if (l > 63)
if (l > DNS_LABEL_MAX)
return false;
return true;