master/domain.c
changeset 353 beb26409ba22
parent 344 5d8281f1aa2a
child 363 58588a3a1562
--- a/master/domain.c	Tue Aug 29 16:17:31 2006 +0000
+++ b/master/domain.c	Thu Aug 31 16:29:15 2006 +0000
@@ -193,7 +193,7 @@
     list_for_each_entry(other_pdo, &slave->sii_pdos, list) {
         if (other_pdo->sync_index != sync->index) continue;
 
-        list_for_each_entry(other_entry, &pdo->entries, list) {
+        list_for_each_entry(other_entry, &other_pdo->entries, list) {
             if (other_entry == entry) {
                 byte_offset = bit_offset / 8;
                 break;