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:
parent
3d862ff066
commit
678d6b4f92
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user