From 0b3cebdb8cf3146580e8cd918ff764fc8c147d1e Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Nov 2006 15:20:35 +0000 Subject: 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 --- src/hashcomp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3