diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-05-09 16:01:07 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-06-16 19:07:35 +0200 |
commit | e2b812c8045b574fa164d850ef50f426ae9e1df5 (patch) | |
tree | 1442e105b792689ef8cc8ef4eb4dc462c5326168 /src/libsystemd-network | |
parent | basic/utf8: modernize ascii_is_valid_n, make ascii_is_valid static inline (diff) | |
download | systemd-e2b812c8045b574fa164d850ef50f426ae9e1df5.tar.xz systemd-e2b812c8045b574fa164d850ef50f426ae9e1df5.zip |
string-util: introduce string_is_safe_ascii helper
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/sd-dhcp-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c index 4967f066dc..25b4cafaa5 100644 --- a/src/libsystemd-network/sd-dhcp-server.c +++ b/src/libsystemd-network/sd-dhcp-server.c @@ -271,7 +271,7 @@ int sd_dhcp_server_set_boot_server_name(sd_dhcp_server *server, const char *name int sd_dhcp_server_set_boot_filename(sd_dhcp_server *server, const char *filename) { assert_return(server, -EINVAL); - if (filename && (!string_is_safe(filename) || !ascii_is_valid(filename))) + if (filename && !string_is_safe_ascii(filename)) return -EINVAL; return free_and_strdup(&server->boot_filename, filename); |