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 9f019fd7fe)
(cherry picked from commit 9555c43bd4)
mr12.5.1
Richard Fuchs 2 years ago
parent 97a9d4f959
commit 6b1c0d9515

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