#### Pre-Submission Checklist
- [✓] Commit message has the format required by CONTRIBUTING guide
- [✓] Commits are split per component
- [✓] Each component has a single commit
- [✓] No commits to README files for modules
#### Type Of Change
- [✓] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
- [ ] PR should be backported to stable branches
- [✓] Tested changes locally
- [✓] Related to issue #1765
#### Description
Macro constant UINT32_MAX is defined in <stdint.h>.
GCC and Clang does not complain on Ubuntu 16
GCC and Clang complains on FreeBSD 11.
Backporting not needed, PROXY feature only in development branch 5.3.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1934
-- Commit Summary --
* core: fix compilation error
-- File Changes --
M src/core/tcp_main.c (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1934.patchhttps://github.com/kamailio/kamailio/pull/1934.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1934
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
- Initialize mongodb c driver before any other mongo api call.
Without this, kamailio would crash with a segmentation fault.
This probably won't happen if a module was also already
being used with a db_mongodb setup.
This issue was initially reported here: https://lists.kamailio.org/pipermail/sr-users/2019-April/105382.html
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1932
-- Commit Summary --
* ndb_mongodb: fix initialization crash
-- File Changes --
M src/modules/ndb_mongodb/mongodb_client.c (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1932.patchhttps://github.com/kamailio/kamailio/pull/1932.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1932
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1928
-- Commit Summary --
* modules:sipcapture Fixed wrong pointer for payload buffer.
-- File Changes --
M src/modules/sipcapture/hep.c (4)
M src/modules/sipcapture/sipcapture.c (7)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1928.patchhttps://github.com/kamailio/kamailio/pull/1928.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1928
Module: kamailio
Branch: master
Commit: 7c9b5c8ada2933086a7665bca4aaea016a394b1f
URL: https://github.com/kamailio/kamailio/commit/7c9b5c8ada2933086a7665bca4aaea0…
Author: Nuno Ferreira <nferreira(a)fuze.com>
Committer: Nuno Ferreira <nferreira(a)fuze.com>
Date: 2019-04-22T19:36:25+01:00
ndb_mongodb: fix initialization crash
- Initialize mongodb c driver before any other mongo api call.
Without this, kamailio would crash with a segmentation fault.
This probably won't happen if a module was also already
being used with a db_mongodb setup.
---
Modified: src/modules/ndb_mongodb/mongodb_client.c
---
Diff: https://github.com/kamailio/kamailio/commit/7c9b5c8ada2933086a7665bca4aaea0…
Patch: https://github.com/kamailio/kamailio/commit/7c9b5c8ada2933086a7665bca4aaea0…
---
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) {