0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-10 05:08:42 +00:00

RPKI shouldn't process more packets when being stopped

This commit is contained in:
Maria Matejka 2021-10-30 14:56:55 +00:00 committed by Maria Matejka
parent 6d87cf4be7
commit 13ebe77176

View File

@ -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;