Re-ordered criteria for datagram matching.
--- a/master/master.c Thu Aug 09 14:38:18 2007 +0000
+++ b/master/master.c Thu Aug 09 14:40:29 2007 +0000
@@ -705,9 +705,9 @@
// search for matching datagram in the queue
matched = 0;
list_for_each_entry(datagram, &master->datagram_queue, queue) {
- if (datagram->state == EC_DATAGRAM_SENT
+ if (datagram->index == datagram_index
+ && datagram->state == EC_DATAGRAM_SENT
&& datagram->type == datagram_type
- && datagram->index == datagram_index
&& datagram->data_size == data_size) {
matched = 1;
break;