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 commitmr14.1.1a4875c336e) (cherry picked from commit6c0207617a)
parent
de94f85bfb
commit
8bb8237b90
Loading…
Reference in new issue