mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
dns-domain: re-introduce dns_name_is_empty()
(cherry picked from commit 7bdf419830
)
This commit is contained in:
parent
477b85f438
commit
df08c12062
@ -60,6 +60,10 @@ static inline int dns_name_is_valid_ldh(const char *s) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
static inline bool dns_name_is_empty(const char *s) {
|
||||
return isempty(s) || streq(s, ".");
|
||||
}
|
||||
|
||||
void dns_name_hash_func(const char *s, struct siphash *state);
|
||||
int dns_name_compare_func(const char *a, const char *b);
|
||||
extern const struct hash_ops dns_name_hash_ops;
|
||||
|
Loading…
Reference in New Issue
Block a user