link_contact_to_impu() does not behave as intended - it will return immediately because ptr==contact .
This will lead to a crash when current contact is always different than the previous.
To prevent this, I set ptr to 0 as it points to a chunk of freed memory anyway.
Removed call to unlink_contact_from_impu() as I believed is redundant and it leads to double free.
This is an usual scenario and it happens with devices that reconnect on TCP , and they change the src port every time , and then the contact will be different.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/512
-- Commit Summary --
* ims_usrloc_scscf: fix link_contact_to_impu() (was crashing when maxcontact_behaviour == 2)
-- File Changes --
M modules/ims_usrloc_scscf/impurecord.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/512.patchhttps://github.com/kamailio/kamailio/pull/512.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/512
Hello,
the GIT branch 4.4 was created, it will host the release series 4.4.x.
To get this branch from GIT, you can use:
git clone https://github.com/kamailio/kamailio.git kamailio
cd kamailio
git checkout -b 4.4 origin/4.4
Notes about installing Kamailio from this branch are available at:
- https://www.kamailio.org/wiki/install/4.4.x/git
Hopefully in about two weeks or so the full release of 4.4.0 will be out.
>From now on, any corresponding fix has to be pushed first to master
branch and then cherry-picked to branch 4.4. No new features can get in
branch 4.4. Enhancements to documentation or helping tools are still
allowed.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 18-20, 2016
Berlin, Germany - http://www.kamailioworld.com
Module: kamailio
Branch: 4.4
Commit: b80163a38a2d5bacad0bbfe47810de052dfe7f7d
URL: https://github.com/kamailio/kamailio/commit/b80163a38a2d5bacad0bbfe47810de0…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-03-11T09:21:01+01:00
pkg/kamailio/deb: version set to 4.4.0-rc0
---
Modified: pkg/kamailio/deb/debian/changelog
Modified: pkg/kamailio/deb/jessie/changelog
Modified: pkg/kamailio/deb/precise/changelog
Modified: pkg/kamailio/deb/sid/changelog
Modified: pkg/kamailio/deb/squeeze/changelog
Modified: pkg/kamailio/deb/stretch/changelog
Modified: pkg/kamailio/deb/trusty/changelog
Modified: pkg/kamailio/deb/wheezy/changelog
---
Diff: https://github.com/kamailio/kamailio/commit/b80163a38a2d5bacad0bbfe47810de0…
Patch: https://github.com/kamailio/kamailio/commit/b80163a38a2d5bacad0bbfe47810de0…
---
diff --git a/pkg/kamailio/deb/debian/changelog b/pkg/kamailio/deb/debian/changelog
index 5bc0fa6..80dbcd9 100644
--- a/pkg/kamailio/deb/debian/changelog
+++ b/pkg/kamailio/deb/debian/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~rc0) unstable; urgency=medium
+
+ * version set to 4.4.0-rc0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:20:14 +0100
+
kamailio (4.4.0~pre3) unstable; urgency=medium
* version set to 4.4.0-pre3
diff --git a/pkg/kamailio/deb/jessie/changelog b/pkg/kamailio/deb/jessie/changelog
index 5bc0fa6..80dbcd9 100644
--- a/pkg/kamailio/deb/jessie/changelog
+++ b/pkg/kamailio/deb/jessie/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~rc0) unstable; urgency=medium
+
+ * version set to 4.4.0-rc0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:20:14 +0100
+
kamailio (4.4.0~pre3) unstable; urgency=medium
* version set to 4.4.0-pre3
diff --git a/pkg/kamailio/deb/precise/changelog b/pkg/kamailio/deb/precise/changelog
index 5bc0fa6..80dbcd9 100644
--- a/pkg/kamailio/deb/precise/changelog
+++ b/pkg/kamailio/deb/precise/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~rc0) unstable; urgency=medium
+
+ * version set to 4.4.0-rc0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:20:14 +0100
+
kamailio (4.4.0~pre3) unstable; urgency=medium
* version set to 4.4.0-pre3
diff --git a/pkg/kamailio/deb/sid/changelog b/pkg/kamailio/deb/sid/changelog
index 5bc0fa6..80dbcd9 100644
--- a/pkg/kamailio/deb/sid/changelog
+++ b/pkg/kamailio/deb/sid/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~rc0) unstable; urgency=medium
+
+ * version set to 4.4.0-rc0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:20:14 +0100
+
kamailio (4.4.0~pre3) unstable; urgency=medium
* version set to 4.4.0-pre3
diff --git a/pkg/kamailio/deb/squeeze/changelog b/pkg/kamailio/deb/squeeze/changelog
index 5bc0fa6..80dbcd9 100644
--- a/pkg/kamailio/deb/squeeze/changelog
+++ b/pkg/kamailio/deb/squeeze/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~rc0) unstable; urgency=medium
+
+ * version set to 4.4.0-rc0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:20:14 +0100
+
kamailio (4.4.0~pre3) unstable; urgency=medium
* version set to 4.4.0-pre3
diff --git a/pkg/kamailio/deb/stretch/changelog b/pkg/kamailio/deb/stretch/changelog
index 5bc0fa6..80dbcd9 100644
--- a/pkg/kamailio/deb/stretch/changelog
+++ b/pkg/kamailio/deb/stretch/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~rc0) unstable; urgency=medium
+
+ * version set to 4.4.0-rc0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:20:14 +0100
+
kamailio (4.4.0~pre3) unstable; urgency=medium
* version set to 4.4.0-pre3
diff --git a/pkg/kamailio/deb/trusty/changelog b/pkg/kamailio/deb/trusty/changelog
index 5bc0fa6..80dbcd9 100644
--- a/pkg/kamailio/deb/trusty/changelog
+++ b/pkg/kamailio/deb/trusty/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~rc0) unstable; urgency=medium
+
+ * version set to 4.4.0-rc0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:20:14 +0100
+
kamailio (4.4.0~pre3) unstable; urgency=medium
* version set to 4.4.0-pre3
diff --git a/pkg/kamailio/deb/wheezy/changelog b/pkg/kamailio/deb/wheezy/changelog
index 5bc0fa6..80dbcd9 100644
--- a/pkg/kamailio/deb/wheezy/changelog
+++ b/pkg/kamailio/deb/wheezy/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~rc0) unstable; urgency=medium
+
+ * version set to 4.4.0-rc0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:20:14 +0100
+
kamailio (4.4.0~pre3) unstable; urgency=medium
* version set to 4.4.0-pre3
Module: kamailio
Branch: 4.4
Commit: 8e07e229d3bbd245a5ce3f67d73faf128dcf4ac2
URL: https://github.com/kamailio/kamailio/commit/8e07e229d3bbd245a5ce3f67d73faf1…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-03-11T09:18:59+01:00
pkg/kamailio/deb: version set to 4.4.0-pre3
---
Modified: pkg/kamailio/deb/debian/changelog
Modified: pkg/kamailio/deb/jessie/changelog
Modified: pkg/kamailio/deb/precise/changelog
Modified: pkg/kamailio/deb/sid/changelog
Modified: pkg/kamailio/deb/squeeze/changelog
Modified: pkg/kamailio/deb/stretch/changelog
Modified: pkg/kamailio/deb/trusty/changelog
Modified: pkg/kamailio/deb/wheezy/changelog
---
Diff: https://github.com/kamailio/kamailio/commit/8e07e229d3bbd245a5ce3f67d73faf1…
Patch: https://github.com/kamailio/kamailio/commit/8e07e229d3bbd245a5ce3f67d73faf1…
---
diff --git a/pkg/kamailio/deb/debian/changelog b/pkg/kamailio/deb/debian/changelog
index 032b460..5bc0fa6 100644
--- a/pkg/kamailio/deb/debian/changelog
+++ b/pkg/kamailio/deb/debian/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~pre3) unstable; urgency=medium
+
+ * version set to 4.4.0-pre3
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:18:29 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/jessie/changelog b/pkg/kamailio/deb/jessie/changelog
index 032b460..5bc0fa6 100644
--- a/pkg/kamailio/deb/jessie/changelog
+++ b/pkg/kamailio/deb/jessie/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~pre3) unstable; urgency=medium
+
+ * version set to 4.4.0-pre3
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:18:29 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/precise/changelog b/pkg/kamailio/deb/precise/changelog
index 032b460..5bc0fa6 100644
--- a/pkg/kamailio/deb/precise/changelog
+++ b/pkg/kamailio/deb/precise/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~pre3) unstable; urgency=medium
+
+ * version set to 4.4.0-pre3
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:18:29 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/sid/changelog b/pkg/kamailio/deb/sid/changelog
index 032b460..5bc0fa6 100644
--- a/pkg/kamailio/deb/sid/changelog
+++ b/pkg/kamailio/deb/sid/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~pre3) unstable; urgency=medium
+
+ * version set to 4.4.0-pre3
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:18:29 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/squeeze/changelog b/pkg/kamailio/deb/squeeze/changelog
index 032b460..5bc0fa6 100644
--- a/pkg/kamailio/deb/squeeze/changelog
+++ b/pkg/kamailio/deb/squeeze/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~pre3) unstable; urgency=medium
+
+ * version set to 4.4.0-pre3
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:18:29 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/stretch/changelog b/pkg/kamailio/deb/stretch/changelog
index 032b460..5bc0fa6 100644
--- a/pkg/kamailio/deb/stretch/changelog
+++ b/pkg/kamailio/deb/stretch/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~pre3) unstable; urgency=medium
+
+ * version set to 4.4.0-pre3
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:18:29 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/trusty/changelog b/pkg/kamailio/deb/trusty/changelog
index 032b460..5bc0fa6 100644
--- a/pkg/kamailio/deb/trusty/changelog
+++ b/pkg/kamailio/deb/trusty/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~pre3) unstable; urgency=medium
+
+ * version set to 4.4.0-pre3
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:18:29 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/wheezy/changelog b/pkg/kamailio/deb/wheezy/changelog
index 032b460..5bc0fa6 100644
--- a/pkg/kamailio/deb/wheezy/changelog
+++ b/pkg/kamailio/deb/wheezy/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.0~pre3) unstable; urgency=medium
+
+ * version set to 4.4.0-pre3
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:18:29 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
Module: kamailio
Branch: master
Commit: 6fcc1952990dbc5e14745b24a5a34a5788347580
URL: https://github.com/kamailio/kamailio/commit/6fcc1952990dbc5e14745b24a5a34a5…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-03-11T09:17:45+01:00
pkg/kamailio/deb: update version to 5.0.0~dev0
---
Modified: pkg/kamailio/deb/debian/changelog
Modified: pkg/kamailio/deb/jessie/changelog
Modified: pkg/kamailio/deb/precise/changelog
Modified: pkg/kamailio/deb/sid/changelog
Modified: pkg/kamailio/deb/squeeze/changelog
Modified: pkg/kamailio/deb/stretch/changelog
Modified: pkg/kamailio/deb/trusty/changelog
Modified: pkg/kamailio/deb/wheezy/changelog
---
Diff: https://github.com/kamailio/kamailio/commit/6fcc1952990dbc5e14745b24a5a34a5…
Patch: https://github.com/kamailio/kamailio/commit/6fcc1952990dbc5e14745b24a5a34a5…
---
diff --git a/pkg/kamailio/deb/debian/changelog b/pkg/kamailio/deb/debian/changelog
index 032b460..48291df 100644
--- a/pkg/kamailio/deb/debian/changelog
+++ b/pkg/kamailio/deb/debian/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev0) unstable; urgency=medium
+
+ * version set to 5.0.0-dev0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:16:51 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/jessie/changelog b/pkg/kamailio/deb/jessie/changelog
index 032b460..48291df 100644
--- a/pkg/kamailio/deb/jessie/changelog
+++ b/pkg/kamailio/deb/jessie/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev0) unstable; urgency=medium
+
+ * version set to 5.0.0-dev0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:16:51 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/precise/changelog b/pkg/kamailio/deb/precise/changelog
index 032b460..48291df 100644
--- a/pkg/kamailio/deb/precise/changelog
+++ b/pkg/kamailio/deb/precise/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev0) unstable; urgency=medium
+
+ * version set to 5.0.0-dev0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:16:51 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/sid/changelog b/pkg/kamailio/deb/sid/changelog
index 032b460..48291df 100644
--- a/pkg/kamailio/deb/sid/changelog
+++ b/pkg/kamailio/deb/sid/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev0) unstable; urgency=medium
+
+ * version set to 5.0.0-dev0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:16:51 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/squeeze/changelog b/pkg/kamailio/deb/squeeze/changelog
index 032b460..48291df 100644
--- a/pkg/kamailio/deb/squeeze/changelog
+++ b/pkg/kamailio/deb/squeeze/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev0) unstable; urgency=medium
+
+ * version set to 5.0.0-dev0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:16:51 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/stretch/changelog b/pkg/kamailio/deb/stretch/changelog
index 032b460..48291df 100644
--- a/pkg/kamailio/deb/stretch/changelog
+++ b/pkg/kamailio/deb/stretch/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev0) unstable; urgency=medium
+
+ * version set to 5.0.0-dev0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:16:51 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/trusty/changelog b/pkg/kamailio/deb/trusty/changelog
index 032b460..48291df 100644
--- a/pkg/kamailio/deb/trusty/changelog
+++ b/pkg/kamailio/deb/trusty/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev0) unstable; urgency=medium
+
+ * version set to 5.0.0-dev0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:16:51 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
diff --git a/pkg/kamailio/deb/wheezy/changelog b/pkg/kamailio/deb/wheezy/changelog
index 032b460..48291df 100644
--- a/pkg/kamailio/deb/wheezy/changelog
+++ b/pkg/kamailio/deb/wheezy/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev0) unstable; urgency=medium
+
+ * version set to 5.0.0-dev0
+
+ -- Victor Seva <vseva(a)debian.org> Fri, 11 Mar 2016 09:16:51 +0100
+
kamailio (4.4.0~pre2) unstable; urgency=medium
* version set to 4.4.0-pre2
Hello,
as branch 4.4 was created to host the upcoming release series 4.4, new
features can be now pushed to master branch. They will be part of the
next future release, likely to be numbered 5.0.
Any fixes that affect existing code in branches 4.4 or older version
have to be backported - push first to master and then cherry pick --
some guidelines exemplified with branch 3.2 are available at:
- https://www.kamailio.org/wiki/devel/backporting-to-3.2.x
As usual, the next future release will be out as stable version in like
8-10 months, with the additional note that 5.0 is planned to include
some major refactoring and enhancements. See:
- https://www.kamailio.org/wiki/devel/kamailio-5.0-design
Many thanks to all contributors and enjoy Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 18-20, 2016
Berlin, Germany - http://www.kamailioworld.com