Commit 2a013bb3 authored by Jan Moskyto Matejka's avatar Jan Moskyto Matejka

Fixed sigsegv for missing proto->rt_notify hook

If rt_notify is NULL, the export must always stay DOWN.
parent ade389b3
......@@ -339,7 +339,7 @@ channel_set_state(struct channel *c, uint state)
if (cs == CS_DOWN)
if (!c->gr_wait)
if (!c->gr_wait && c->proto->rt_notify)
......@@ -1089,7 +1089,7 @@ graceful_restart_done(struct timer *t UNUSED)
WALK_LIST(c, p->channels)
/* Resume postponed export of routes */
if ((c->channel_state == CS_UP) && c->gr_wait)
if ((c->channel_state == CS_UP) && c->gr_wait && c->proto->rt_notify)
/* Cleanup */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment