s3: ALWAYS run make test before checkin ....
authorVolker Lendecke <vl@samba.org>
Sun, 4 Jul 2010 12:59:23 +0000 (14:59 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 4 Jul 2010 12:59:34 +0000 (14:59 +0200)
source3/lib/serverid.c

index e9c72961e6d1a209e0973ab18e259cac21374173..dc4834b8dadcc9d506c53cf6a9dc981618bc77c2 100644 (file)
@@ -187,8 +187,8 @@ static int server_exists_parse(TDB_DATA key, TDB_DATA data, void *priv)
         * Use memcmp, not direct compare. data.dptr might not be
         * aligned.
         */
-       state->exists =
-               (memcmp(&unique_id, data.dptr, sizeof(unique_id)) == 0);
+       state->exists = (memcmp(&state->id->unique_id, data.dptr,
+                               sizeof(unique_id)) == 0);
        return 0;
 }