troglobit / pimd

PIM-SM/SSM multicast routing for UNIX and Linux
http://troglobit.com/projects/pimd/
BSD 3-Clause "New" or "Revised" License
194 stars 86 forks source link

Fix a double-free when daemon is restarting. #101

Closed xdxu closed 7 years ago

xdxu commented 7 years ago

When pimd receives SIGHUP signal and in the Source-specific multicast case, it will restart and the sources list in the VIF table will be freed. However the source node gets double freed due to an error in walking the list. The correct pointer to the next node needs to be set.

Signed-off-by: Xiaodong Xu stid.smth@gmail.com

troglobit commented 7 years ago

Nice catch, thank you!