Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-06-11 22:57:03 +0400
committerBadlop <badlop@process-one.net>2009-06-11 22:57:03 +0400
commit2f3963417fc5b387049f382acc3041dc8ee00ccf (patch)
treed0c9ec56b0020c70540262758d3dd0bcfa36e26a /src/ejabberd_c2s.erl
parent8de03275c3cb23f06ee88dbdc7392d1b9dbc49b3 (diff)
Prevent process crash if the IP and port of a connection is unknown.
SVN Revision: 2156
Diffstat (limited to 'src/ejabberd_c2s.erl')
-rw-r--r--src/ejabberd_c2s.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl
index 412a26816..744a24933 100644
--- a/src/ejabberd_c2s.erl
+++ b/src/ejabberd_c2s.erl
@@ -1911,6 +1911,8 @@ fsm_reply(Reply, StateName, StateData) ->
{reply, Reply, StateName, StateData, ?C2S_OPEN_TIMEOUT}.
%% Used by c2s blacklist plugins
+is_ip_blacklisted(undefined) ->
+ false;
is_ip_blacklisted({IP,_Port}) ->
ejabberd_hooks:run_fold(check_bl_c2s, false, [IP]).