diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2016-12-26 20:26:20 +0100 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2016-12-26 20:26:20 +0100 |
commit | 53712434c0f7b6d34523540ad766aa27c2cc9501 (patch) | |
tree | e40f9b195764aa9ec406d00a9d5729e66959028f /modules/stun | |
parent | db040d4ea167f23139d571662e79a4478700025e (diff) |
mnat: make it re-entrant
Diffstat (limited to 'modules/stun')
-rw-r--r-- | modules/stun/stun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/stun/stun.c b/modules/stun/stun.c index d7edf94..48dffe7 100644 --- a/modules/stun/stun.c +++ b/modules/stun/stun.c @@ -230,7 +230,8 @@ static int media_alloc(struct mnat_media **mp, struct mnat_sess *sess, static int module_init(void) { - return mnat_register(&mnat, "stun", NULL, session_alloc, media_alloc, + return mnat_register(&mnat, baresip_mnatl(), + "stun", NULL, session_alloc, media_alloc, NULL); } |