From: Maria Matejka Date: Sat, 30 Oct 2021 14:56:55 +0000 (+0000) Subject: RPKI shouldn't process more packets when being stopped X-Git-Tag: 3.0-alpha0~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13ebe7717685aaa64bbbe09a2e6cc0c6da2bd6bd;p=thirdparty%2Fbird.git RPKI shouldn't process more packets when being stopped --- diff --git a/proto/rpki/packets.c b/proto/rpki/packets.c index dd11f997c..2c37df76b 100644 --- a/proto/rpki/packets.c +++ b/proto/rpki/packets.c @@ -897,6 +897,9 @@ rpki_rx_hook(struct birdsock *sk, uint size) struct rpki_cache *cache = sk->data; struct rpki_proto *p = cache->p; + if ((p->p.proto_state == PS_DOWN) || (p->cache != cache)) + return 0; + byte *pkt_start = sk->rbuf; byte *end = pkt_start + size;