mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 15:47:22 +00:00
Merge pull request #10725 from opensourcerouting/zebra-fpm-crash-fix
zebra: don't enqueue data with FPM socket closed
This commit is contained in:
commit
6c72dd869e
@ -1232,7 +1232,8 @@ static void fpm_process_queue(struct thread *t)
|
|||||||
* the output data in the STREAM_WRITEABLE
|
* the output data in the STREAM_WRITEABLE
|
||||||
* check above, so we can ignore the return
|
* 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. */
|
/* Account the processed entries. */
|
||||||
processed_contexts++;
|
processed_contexts++;
|
||||||
|
Loading…
Reference in New Issue
Block a user