summaryrefslogtreecommitdiff
path: root/modules/libsrtp
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-12-28 18:36:17 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-12-28 18:36:17 +0100
commitefcf895bfcee006488d305b5344e49f87c6fd460 (patch)
tree6e8b7f0b5d6170942af2972b119f460deeb3e0a3 /modules/libsrtp
parentd9ecc198453a41cf92acee37b1696a057558190c (diff)
menc: make it re-entrant
Diffstat (limited to 'modules/libsrtp')
-rw-r--r--modules/libsrtp/srtp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/libsrtp/srtp.c b/modules/libsrtp/srtp.c
index cb04c43..db05d64 100644
--- a/modules/libsrtp/srtp.c
+++ b/modules/libsrtp/srtp.c
@@ -431,6 +431,7 @@ static struct menc menc_srtp_mandf = {
static int mod_srtp_init(void)
{
+ struct list *mencl = baresip_mencl();
err_status_t err;
err = srtp_init();
@@ -440,9 +441,9 @@ static int mod_srtp_init(void)
return ENOSYS;
}
- menc_register(&menc_srtp_opt);
- menc_register(&menc_srtp_mand);
- menc_register(&menc_srtp_mandf);
+ menc_register(mencl, &menc_srtp_opt);
+ menc_register(mencl, &menc_srtp_mand);
+ menc_register(mencl, &menc_srtp_mandf);
return 0;
}