[OpenSIPS-Devel] [OpenSIPS/opensips] 033db9: Fixed uninit len for th_contact_encode_passwd param.
Bogdan Andrei IANCU
noreply at github.com
Sat Feb 2 13:08:17 EST 2019
Branch: refs/heads/2.4
Home: https://github.com/OpenSIPS/opensips
Commit: 033db9fd02ef2ef212bd27e1e3af4b0028588aa7
https://github.com/OpenSIPS/opensips/commit/033db9fd02ef2ef212bd27e1e3af4b0028588aa7
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2019-02-02 (Sat, 02 Feb 2019)
Changed paths:
M modules/topology_hiding/topology_hiding.c
Log Message:
-----------
Fixed uninit len for th_contact_encode_passwd param.
As the used len was all the time 10 (the len of the default passwd), if you have set a shorter one, the actual used passwd has some trailing memory garbage (up to 10 char len). This grabage could be (99.999%) constant during runtime, but 100% different after a restart. Shorly, the decoding on ongoing contact would have failed after a restart.
(cherry picked from commit 4a17a828861feb6be07f67103ad352e7d8c817f6)
More information about the Devel
mailing list