X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/59e6083b5ecbb2a8e9ab511ac2f8da40b5c82f66..f6b5140de23dd17f9a9c28fcca0fcef58b161a78:/l2tpns.c?ds=inline diff --git a/l2tpns.c b/l2tpns.c index 537ea34..5385955 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -5491,7 +5491,7 @@ static void update_config() while (*shost && (shost < e)) { - while ((n < e) && (*n == ' ' || *n == '\t')) n++; + while ((n < e) && (*n == ' ' || *n == ',' || *n == '\t')) n++; i = 0; while (n < e && (*n != ',') && (*n != '\t')) @@ -5499,6 +5499,7 @@ static void update_config() config->multi_n_hostname[config->nbmultihostname][i] = *n; n++;i++; } + if (i > 0) { config->multi_n_hostname[config->nbmultihostname][i] = 0; @@ -5506,6 +5507,8 @@ static void update_config() config->nbmultihostname++; if (config->nbmultihostname >= MAX_NBHOSTNAME) break; } + + shost = n; } if (config->nbmultihostname >= 1)