[OpenSIPS-Devel] [OpenSIPS/opensips] b75703: usrloc: make next_hop point within the shared buffer
Răzvan Crainea
noreply at github.com
Fri Mar 29 12:47:09 EDT 2019
Branch: refs/heads/2.4
Home: https://github.com/OpenSIPS/opensips
Commit: b7570319ef0e150053a124275bc74cd87ff7bf03
https://github.com/OpenSIPS/opensips/commit/b7570319ef0e150053a124275bc74cd87ff7bf03
Author: Razvan Crainea <razvan at opensips.org>
Date: 2019-03-29 (Fri, 29 Mar 2019)
Changed paths:
M modules/usrloc/dlist.c
Log Message:
-----------
usrloc: make next_hop point within the shared buffer
Before this commit, the `next_hop` fields returned by
`get_domain_*_ucontacts()` were pointing to a shared memory, that might
dissapear when the contact is gone, resulting in a crash.
This patch re-points the `next_hop.name` field within the buffer.
Crash reported in ticket #1652
(cherry picked from commit e162f5f1024f8dad4bf5554600aa25183fcf92fc)
More information about the Devel
mailing list