Skip to content

Commit 8feb9fa

Browse files
authored
Merge pull request systemd#21584 from yuwata/network-wireguard-cleanups
network: cleanups for wireguard
2 parents 4a410ad + 38ef464 commit 8feb9fa

File tree

3 files changed

+173
-144
lines changed

3 files changed

+173
-144
lines changed

src/basic/parse-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ int parse_ip_port(const char *s, uint16_t *ret) {
644644
uint16_t l;
645645
int r;
646646

647-
r = safe_atou16(s, &l);
647+
r = safe_atou16_full(s, SAFE_ATO_REFUSE_LEADING_WHITESPACE, &l);
648648
if (r < 0)
649649
return r;
650650

0 commit comments

Comments
 (0)