summaryrefslogtreecommitdiff
path: root/nest/rt-table.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@jmq.cz>2021-11-23 12:06:27 +0000
committerMaria Matejka <mq@jmq.cz>2021-11-23 12:06:27 +0000
commit5395880908fdb264b5b78ccc455dced49eb29915 (patch)
tree5cfece0f526f859f49c409eaa14c653b4860c7c5 /nest/rt-table.c
parent821344c781a99a4f559949a7497617b64c061c82 (diff)
Fixed pipe reload/refeed
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index c53fd195..e4c85fd4 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -618,6 +618,9 @@ rt_notify_basic(struct channel *c, const net_addr *net, rte *new, rte *old)
if (old && !bmap_test(&c->export_map, old->id))
old = NULL;
+ if (old && (old->sender == c->in_req.hook))
+ bug("bad-behaved pipe");
+
if (!new && !old)
return;