From 789e43b40dc9cef09e9a987dc003ffb8dcdea096 Mon Sep 17 00:00:00 2001 From: dz Date: Sun, 1 Mar 2009 13:20:28 +0000 Subject: Fix a crash in m_conn_waitpong, spotted by Obi_Wan. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11159 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_conn_waitpong.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp index d6694d107..71927a7f1 100644 --- a/src/modules/m_conn_waitpong.cpp +++ b/src/modules/m_conn_waitpong.cpp @@ -78,7 +78,7 @@ class ModuleWaitPong : public Module if (pingrpl) { - if (strcmp(pingrpl, parameters[0].c_str()) == 0) + if (!parameters.empty() && (strcmp(pingrpl, parameters[0].c_str()) == 0)) { delete[] pingrpl; user->Shrink(extenstr); -- cgit v1.2.3