summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index ce3d00b8c..c58741190 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -2074,7 +2074,10 @@ class TreeSocket : public InspSocket
{
// we don't do anything with a line > 2048
if (line.length() > 2048)
+ {
+ log(DEBUG,"Line too long!");
return;
+ }
if (!strchr(line.c_str(),' '))
{
n.push_back(line);
@@ -2095,6 +2098,7 @@ class TreeSocket : public InspSocket
{
n.push_back(param);
*param = count = 0;
+ pptr = param;
item++;
}
else
@@ -2118,13 +2122,13 @@ class TreeSocket : public InspSocket
}
n.push_back(param);
*param = count = 0;
+ pptr = param;
}
}
}
if (*param)
- {
n.push_back(param);
- }
+
return;
}