summaryrefslogtreecommitdiff
path: root/proto/rpki/packets.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/rpki/packets.c')
-rw-r--r--proto/rpki/packets.c3
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;