Fix: loop parse multi_hostanme
authorfendo <fendo@bi12info.com>
Wed, 22 May 2013 18:49:17 +0000 (20:49 +0200)
committerfendo <fendo@bi12info.com>
Wed, 22 May 2013 18:49:17 +0000 (20:49 +0200)
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)