diff options
author | Maria Matejka <mq@jmq.cz> | 2021-10-30 14:56:55 +0000 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2021-11-09 19:20:41 +0100 |
commit | 13ebe7717685aaa64bbbe09a2e6cc0c6da2bd6bd (patch) | |
tree | bd5533a42d82bfc0028845ad741691b89865e104 /proto | |
parent | 6d87cf4be7536433d263609828414e687e1d4f08 (diff) |
RPKI shouldn't process more packets when being stopped
Diffstat (limited to 'proto')
-rw-r--r-- | proto/rpki/packets.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |