summaryrefslogtreecommitdiff
path: root/modules/turn
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-12-26 20:26:20 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-12-26 20:26:20 +0100
commit53712434c0f7b6d34523540ad766aa27c2cc9501 (patch)
treee40f9b195764aa9ec406d00a9d5729e66959028f /modules/turn
parentdb040d4ea167f23139d571662e79a4478700025e (diff)
mnat: make it re-entrant
Diffstat (limited to 'modules/turn')
-rw-r--r--modules/turn/turn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/turn/turn.c b/modules/turn/turn.c
index 41588e6..85fe84b 100644
--- a/modules/turn/turn.c
+++ b/modules/turn/turn.c
@@ -279,7 +279,8 @@ static int update(struct mnat_sess *sess)
static int module_init(void)
{
- return mnat_register(&mnat, "turn", NULL, session_alloc, media_alloc,
+ return mnat_register(&mnat, baresip_mnatl(),
+ "turn", NULL, session_alloc, media_alloc,
update);
}