Fixed alias bug.
authorFlorian Pose <fp@igh-essen.com>
Fri, 20 Jun 2008 13:38:35 +0000
changeset 1047 5f9d98621c7f
parent 1046 51865c866155
child 1048 4b7e54b40082
Fixed alias bug.
master/master.c
--- a/master/master.c	Fri Jun 20 07:55:28 2008 +0000
+++ b/master/master.c	Fri Jun 20 13:38:35 2008 +0000
@@ -1029,8 +1029,8 @@
         // find slave with the given alias
         for (; slave < master->slaves + master->slave_count;
                 slave++) {
-			if (slave->sii.alias != alias)
-				continue;
+			if (slave->sii.alias == alias)
+                break;
 		}
         if (slave == master->slaves + master->slave_count)
             return NULL;