summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2012-03-26 13:23:14 +0200
committerYorhel <git@yorhel.nl>2012-03-26 13:23:14 +0200
commita77352ccee11e5efeee0b349a42ca4b91f708c88 (patch)
treefc2699108698d2be852e29fa4e6b966369cb398e
parent91efcdc2c7fcf133b4761e65fec48e9e2b303319 (diff)
link: Don't register catchall pattern if !l->activeHEADmaster
-rw-r--r--tanja.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tanja.c b/tanja.c
index 79bf560..d1bf564 100644
--- a/tanja.c
+++ b/tanja.c
@@ -1859,7 +1859,8 @@ static inline void tn_link_handlehandshake(tn_link *l, const char *buf, int len)
} else {
mutex_lock(l->node->lock);
mutex_lock(l->lock);
- l->catchall = tn_node_register(l->node, patternreg_new_link(tn_tuple_new(""), l));
+ if(l->active)
+ l->catchall = tn_node_register(l->node, patternreg_new_link(tn_tuple_new(""), l));
mutex_unlock(l->lock);
mutex_unlock(l->node->lock);
l->synced = 1;