Fix odbc_port option processing

This commit is contained in:
Evgeniy Khramtsov 2014-05-27 15:27:23 +04:00
parent dceab3689d
commit 52221127cc
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ db_opts(Host) ->
[odbc, Server]; [odbc, Server];
_ -> _ ->
Port = ejabberd_config:get_option( Port = ejabberd_config:get_option(
{port, Host}, {odbc_port, Host},
fun(P) when is_integer(P), P > 0, P < 65536 -> P end, fun(P) when is_integer(P), P > 0, P < 65536 -> P end,
case Type of case Type of
mysql -> ?MYSQL_PORT; mysql -> ?MYSQL_PORT;