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:
parent
6d87cf4be7
commit
13ebe77176
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user