summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-05-09 16:01:07 +0200
committerMike Yuan <me@yhndnzj.com>2024-06-16 19:07:35 +0200
commite2b812c8045b574fa164d850ef50f426ae9e1df5 (patch)
tree1442e105b792689ef8cc8ef4eb4dc462c5326168 /src/libsystemd-network
parentbasic/utf8: modernize ascii_is_valid_n, make ascii_is_valid static inline (diff)
downloadsystemd-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.c2
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);