Fix: loop parse multi_hostanme
[l2tpns.git] / l2tpns.c
index 68817a2..c6fe521 100644 (file)
--- a/l2tpns.c
+++ b/l2tpns.c
@@ -5471,6 +5471,8 @@ static void update_config()
                                config->nbmultihostname++;
                                if (config->nbmultihostname >= MAX_NBHOSTNAME) break;
                        }
+
+                       shost = n;
                }
 
                if (config->nbmultihostname >= 1)