From 26647e0f4f230456032b77a07e6e1630b3fae181 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 24 Sep 2011 12:07:25 +0200 Subject: [PATCH] make sure LoopDat really is only the loop date and not {ok, LoopDat} --- src/mgw_nat_usr.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mgw_nat_usr.erl b/src/mgw_nat_usr.erl index e3544be..872bab1 100644 --- a/src/mgw_nat_usr.erl +++ b/src/mgw_nat_usr.erl @@ -47,7 +47,7 @@ init(Params) -> RewriteActMod:reload_config(), SctpHdlrArgs = [MscLocalIp, MscLocalPort, MscRemoteIp, StpRemoteIp, StpRemotePort, RewriteActMod], - LoopDat = apply(sctp_handler, init, SctpHdlrArgs), + {ok, LoopDat} = apply(sctp_handler, init, SctpHdlrArgs), {ok, {Params, LoopDat}}. % this cast is produced by mgw_nat_sup child walker