Merge pull request #10725 from opensourcerouting/zebra-fpm-crash-fix

zebra: don't enqueue data with FPM socket closed
This commit is contained in:
Donald Sharp 2022-03-14 08:27:10 -04:00 committed by GitHub
commit 6c72dd869e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1232,6 +1232,7 @@ 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
*/ */
if (fnc->socket != -1)
(void)fpm_nl_enqueue(fnc, ctx); (void)fpm_nl_enqueue(fnc, ctx);
/* Account the processed entries. */ /* Account the processed entries. */