From: Ondrej Zajicek Date: Wed, 2 Dec 2009 21:22:40 +0000 (+0100) Subject: Fixes silly bug. X-Git-Tag: v1.2.0~25^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a421ec33cb9029899122d0ab63bab0fa268348d2;p=thirdparty%2Fbird.git Fixes silly bug. --- diff --git a/nest/proto.c b/nest/proto.c index bdac4bf65..b23011d75 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -649,7 +649,7 @@ proto_notify_state(struct proto *p, unsigned ps) switch (ps) { case PS_DOWN: - if ((cs = FS_FEEDING) || (cs == FS_HAPPY)) + if ((cs == FS_FEEDING) || (cs == FS_HAPPY)) proto_schedule_flush(p); neigh_prune(); // FIXME convert neighbors to resource? @@ -672,7 +672,7 @@ proto_notify_state(struct proto *p, unsigned ps) proto_schedule_feed(p, 1); break; case PS_STOP: - if ((cs = FS_FEEDING) || (cs == FS_HAPPY)) + if ((cs == FS_FEEDING) || (cs == FS_HAPPY)) proto_schedule_flush(p); break; default: