mirror of https://github.com/sipwise/rtpengine.git
Currently the function has two cycles (while-outer-cycle and for-inner-cycle). The inner one operates on the given `pp` pointer and can potentially mutate it (the pointer isn't const), hence the outer cycle will continue with a mutated pointer. Instead just use a local scope pointer to manipulate linked list's data. P.S.: the `pp` pointer isn't a double pointer, so unlikely was expected (even by design) to be modified (e.g. its address or what it actually points to). Change-Id: Ia36bcb6fb47e9e72ae25a838f8005ca99f4c591d (cherry picked from commitmr26.0.1a4875c336e) (cherry picked from commit695fdea671)
parent
1071c461aa
commit
95a34fc73f
Loading…
Reference in new issue