routing: remove rt_entry.rt_best pointer when rt_path is deleted (#61)
authoriwanovich <iwanovich@users.noreply.github.com>
Wed, 23 May 2018 21:04:18 +0000 (23:04 +0200)
committerFerry Huberts <mailings@hupie.com>
Wed, 23 May 2018 21:04:18 +0000 (23:04 +0200)
commita24e20a288140fb4fa8b5b7971216400c256ac11
tree43bcbb238d448f06c661a2b79f473f74dfcf73c7
parentdc1e92b465ff1fad11a77713b98e8703044a68d3
routing: remove rt_entry.rt_best pointer when rt_path is deleted (#61)

routing: remove rt_entry.rt_best pointer when rt_path is deleted

When rt_path is free'd from memory, references to it should be deleted.

Checking all rt_entry structs for rt_best pointers to the rt_path
that is to be deleted and nullify the pointer. Not doing so might
lead to segfaults.

Signed-off-by: Iwan G. Flameling <iwanovich@gmail.com>
src/routing_table.c