diff options
author | dz <dz@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-01 13:20:28 +0000 |
---|---|---|
committer | dz <dz@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-01 13:20:28 +0000 |
commit | 789e43b40dc9cef09e9a987dc003ffb8dcdea096 (patch) | |
tree | 6afaeb236979aab981442db75075e657fdbf8678 /src/modules | |
parent | 862bdf27b8a3b419ab353cd74a547d5b5b601dba (diff) |
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
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_conn_waitpong.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |