link_set: fix typo in f8d4e24
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 5 Jun 2017 22:21:28 +0000 (00:21 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 5 Jun 2017 22:24:40 +0000 (00:24 +0200)
This broke LinkQualityMult

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/link_set.c

index 3241883..f2b2706 100644 (file)
@@ -324,7 +324,7 @@ set_loss_link_multiplier(struct link_entry *entry)
   assert(entry->if_name);
   inter = if_ifwithname(entry->if_name);
 
-  if (!inter) {
+  if (inter) {
     /* find the interface configuration for the interface */
     for (cfg_inter = olsr_cnf->interfaces; cfg_inter; cfg_inter = cfg_inter->next) {
       if (cfg_inter->interf == inter) {