From 13ebe7717685aaa64bbbe09a2e6cc0c6da2bd6bd Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sat, 30 Oct 2021 14:56:55 +0000 Subject: RPKI shouldn't process more packets when being stopped --- proto/rpki/packets.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proto/rpki/packets.c b/proto/rpki/packets.c index dd11f997..2c37df76 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; -- cgit v1.2.3