projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa1972a
)
Fix: loop parse multi_hostanme
author
fendo
<fendo@bi12info.com>
Wed, 22 May 2013 20:23:56 +0000
(22:23 +0200)
committer
fendo
<fendo@bi12info.com>
Wed, 22 May 2013 20:23:56 +0000
(22:23 +0200)
l2tpns.c
patch
|
blob
|
history
diff --git
a/l2tpns.c
b/l2tpns.c
index
c6fe521
..
c41b502
100644
(file)
--- a/
l2tpns.c
+++ b/
l2tpns.c
@@
-5456,7
+5456,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'))
@@
-5464,6
+5464,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;