RPKI shouldn't process more packets when being stopped

This commit is contained in:
Maria Matejka
2021-11-09 19:20:41 +01:00
committed by Maria Matejka
parent 6d87cf4be7
commit 13ebe77176
+3
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;