Skip to content

Commit

Permalink
Fix badmatch when eradius_proxy sends to server
Browse files Browse the repository at this point in the history
  • Loading branch information
surik authored and umatomba committed Oct 25, 2017
1 parent 13cd05f commit f6d8c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eradius_proxy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ send_to_server(_Request, {undefined, 0, []}, _) ->
send_to_server(#radius_request{reqid = ReqID} = Request, {Server, Port, Secret}, Options) ->
Retries = proplists:get_value(retries, Options, ?DEFAULT_RETRIES),
Timeout = proplists:get_value(timeout, Options, ?DEFAULT_TIMEOUT),
Options = [{retries, Retries}, {timeout, Timeout}],
case eradius_client:send_request({Server, Port, Secret}, Request, Options) of
Options1 = [{retries, Retries}, {timeout, Timeout}],
case eradius_client:send_request({Server, Port, Secret}, Request, Options1) of
{ok, Result, Auth} -> decode_request(Result, ReqID, Secret, Auth);
Error ->
lager:error("~p: error during send_request (~p)", [?MODULE, Error]),
Expand Down

0 comments on commit f6d8c8e

Please sign in to comment.