mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-01 17:53:00 +01:00
Prevent process crash if the IP and port of a connection is unknown.
SVN Revision: 2155
This commit is contained in:
parent
ce7e9129d9
commit
6f080f7fed
@ -2015,6 +2015,8 @@ fsm_reply(Reply, StateName, StateData) ->
|
|||||||
{reply, Reply, StateName, StateData, ?C2S_OPEN_TIMEOUT}.
|
{reply, Reply, StateName, StateData, ?C2S_OPEN_TIMEOUT}.
|
||||||
|
|
||||||
%% Used by c2s blacklist plugins
|
%% Used by c2s blacklist plugins
|
||||||
|
is_ip_blacklisted(undefined) ->
|
||||||
|
false;
|
||||||
is_ip_blacklisted({IP,_Port}) ->
|
is_ip_blacklisted({IP,_Port}) ->
|
||||||
ejabberd_hooks:run_fold(check_bl_c2s, false, [IP]).
|
ejabberd_hooks:run_fold(check_bl_c2s, false, [IP]).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user