]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes another minor bug in iface scan.
authorOndrej Zajicek <santiago@crfreenet.org>
Sat, 21 Jan 2012 21:56:16 +0000 (22:56 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sat, 21 Jan 2012 21:56:16 +0000 (22:56 +0100)
Iface flags are not updated in some cases.

nest/iface.c

index b8b214e5a869fa54c6956f1e257c84a6f927629e..2b14d3f05e505afe5ae51ee52c33bac802132910 100644 (file)
@@ -290,11 +290,11 @@ if_update(struct iface *new)
            memcpy(i, new, sizeof(*i));
            goto newif;
          }
-       else if (c)
-         {
-           if_copy(i, new);
-           if_notify_change(c, i);
-         }
+
+       if_copy(i, new);
+       if (c)
+         if_notify_change(c, i);
+
        i->flags |= IF_UPDATED;
        return i;
       }