[OpenSIPS-Devel] [OpenSIPS/opensips] b2d59f: clusterer: fix possible crash when sending a bin p...
Vlad Pătrașcu
noreply at github.com
Wed Aug 21 07:39:52 EDT 2019
Branch: refs/heads/2.4
Home: https://github.com/OpenSIPS/opensips
Commit: b2d59f9f5fd0bdebc4971eb730639097bc6e4fe9
https://github.com/OpenSIPS/opensips/commit/b2d59f9f5fd0bdebc4971eb730639097bc6e4fe9
Author: Vlad Patrascu <vladp at opensips.org>
Date: 2019-08-21 (Wed, 21 Aug 2019)
Changed paths:
M modules/clusterer/clusterer.c
M modules/clusterer/clusterer_mod.c
M modules/clusterer/node_info.c
M modules/clusterer/sync.c
Log Message:
-----------
clusterer: fix possible crash when sending a bin packet
This commit fixes a crash caused by a race condition when computing
the next hop for a destination before sending a bin packet.
The actual 'next_hop' field from the 'node_info_t' struct may be changed by
another process after getting the return code from the 'get_next_hop_2()'
function.
(cherry picked from commit 5386bb7a48cc62b7930788471b82756a6e2aea3d)
More information about the Devel
mailing list