Skip to content

Commit

Permalink
Merge pull request FRRouting#10725 from opensourcerouting/zebra-fpm-c…
Browse files Browse the repository at this point in the history
…rash-fix

zebra: don't enqueue data with FPM socket closed
  • Loading branch information
donaldsharp authored Mar 14, 2022
2 parents a932114 + 3b1cadd commit 6c72dd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zebra/dplane_fpm_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,8 @@ static void fpm_process_queue(struct thread *t)
* the output data in the STREAM_WRITEABLE
* check above, so we can ignore the return
*/
(void)fpm_nl_enqueue(fnc, ctx);
if (fnc->socket != -1)
(void)fpm_nl_enqueue(fnc, ctx);

/* Account the processed entries. */
processed_contexts++;
Expand Down

0 comments on commit 6c72dd8

Please sign in to comment.