# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1213969115 0
# Node ID 5f9d98621c7fd5e07303f729180043414eb0b48e
# Parent  51865c86615536752f0c2cbfbb7f4dcab17d0934
Fixed alias bug.

diff -r 51865c866155 -r 5f9d98621c7f 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;