diff options
author | Badlop <badlop@process-one.net> | 2009-06-11 18:01:36 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2009-06-11 18:01:36 +0000 |
commit | 6f080f7fed3c09593beb3daa8136ff56549fd6b7 (patch) | |
tree | 652e0c0e0a8d3b8a021ca8744debb5b90a3f068e | |
parent | When client is closed, include the Reason in the stream trailer stanza. (diff) |
Prevent process crash if the IP and port of a connection is unknown.
SVN Revision: 2155
-rw-r--r-- | src/ejabberd_c2s.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index 6567d909d..dc5d4676d 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -2015,6 +2015,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]). |