summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-11 15:20:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-11 15:20:35 +0000
commit0b3cebdb8cf3146580e8cd918ff764fc8c147d1e (patch)
tree59fd69df14ef403c1fd3224ad383260d0f9a840f /src
parent69c3a32784b8c638ea10c269c3f63ede86b8aaa0 (diff)
Handle out of range port numbers without stopping parsing the whole set
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5691 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/hashcomp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index b26fd0841..0188f82b6 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -427,7 +427,8 @@ long irc::portparser::GetToken()
}
else
{
- return 0;
+ /* Assume its just the one port */
+ return atoi(sbegin.c_str());
}
}
else