[sr-dev] git:master:e8ea999b: Merge pull request #1932 from nferreyra/ndb_mongodb_mongoc_init

GitHub noreply at github.com
Tue Apr 23 08:56:24 CEST 2019


Module: kamailio
Branch: master
Commit: e8ea999b3f208d71fb8bdaa282c5f1d31296860b
URL: https://github.com/kamailio/kamailio/commit/e8ea999b3f208d71fb8bdaa282c5f1d31296860b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2019-04-23T08:56:20+02:00

Merge pull request #1932 from nferreyra/ndb_mongodb_mongoc_init

ndb_mongodb: fix initialization crash

---

Modified: src/modules/ndb_mongodb/mongodb_client.c

---

Diff:  https://github.com/kamailio/kamailio/commit/e8ea999b3f208d71fb8bdaa282c5f1d31296860b.diff
Patch: https://github.com/kamailio/kamailio/commit/e8ea999b3f208d71fb8bdaa282c5f1d31296860b.patch

---

diff --git a/src/modules/ndb_mongodb/mongodb_client.c b/src/modules/ndb_mongodb/mongodb_client.c
index 746c5876fd..b49f111998 100644
--- a/src/modules/ndb_mongodb/mongodb_client.c
+++ b/src/modules/ndb_mongodb/mongodb_client.c
@@ -53,6 +53,7 @@ int mongodbc_init(void)
 		return -1;
 	}
 
+	mongoc_init();
 	for(rsrv=_mongodbc_srv_list; rsrv; rsrv=rsrv->next)
 	{
 		if(rsrv->uri==NULL || rsrv->uri->len<=0) {




More information about the sr-dev mailing list