MT#61352 strip leading spaces in interfaces

Avoids parsing errors and allows 'xx ; xx' syntax in config file

Change-Id: I1eed84bdcd280393d1fad12ade4cdb598f0ecd1c
pull/1876/head
Richard Fuchs 2 years ago
parent dafd71fd98
commit 9f019fd7fe

@ -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) {

Loading…
Cancel
Save