Commit d7ef94b8 authored by Aurelio Colosimo's avatar Aurelio Colosimo Committed by Alessandro Rubini

st_com_slave_handle_announce fix hooks call

This fixes a bug in proto-ext-whiterabbit, since the White Rabbit next_state
was overwritten by bmc.
Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent d0f7ca72
......@@ -123,11 +123,11 @@ int st_com_slave_handle_announce(struct pp_instance *ppi, unsigned char *buf,
/*Reset Timer handling Announce receipt timeout*/
pp_timeout_restart_annrec(ppi);
ppi->next_state = bmc(ppi); /* got a new announce: run bmc */
if (pp_hooks.handle_announce)
pp_hooks.handle_announce(ppi);
ppi->next_state = bmc(ppi); /* got a new announce: run bmc */
return 0;
}
......
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