From 9555c43bd49fec264f2f82123e89a54eb9115db6 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 29 Oct 2024 13:51:43 -0400 Subject: [PATCH] MT#61352 strip leading spaces in interfaces Avoids parsing errors and allows 'xx ; xx' syntax in config file Change-Id: I1eed84bdcd280393d1fad12ade4cdb598f0ecd1c (cherry picked from commit 9f019fd7fe8493f4720b6343666ff7d115235c70) --- daemon/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/main.c b/daemon/main.c index 223886ca1..2fc8e2e58 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -275,6 +275,9 @@ static int if_addr_parse(intf_config_q *q, char *s, struct ifaddrs *ifas) { GQueue addrs = G_QUEUE_INIT; struct intf_config *ifa; + while (*s == ' ') + s++; + /* name */ c = strpbrk(s, "/="); if (c) {