Merge branch 'master' into samesversion
[l2tpns.git] / l2tpns.c
index 537ea34..77c302c 100644 (file)
--- a/l2tpns.c
+++ b/l2tpns.c
@@ -5506,6 +5506,8 @@ static void update_config()
                                config->nbmultihostname++;
                                if (config->nbmultihostname >= MAX_NBHOSTNAME) break;
                        }
                                config->nbmultihostname++;
                                if (config->nbmultihostname >= MAX_NBHOSTNAME) break;
                        }
+
+                       shost = n;
                }
 
                if (config->nbmultihostname >= 1)
                }
 
                if (config->nbmultihostname >= 1)