Selaa lähdekoodia

A stray "&=" instead of "&" was clobbering the node id portion of the receiver id in delivered messages

Ian Goldberg 1 vuosi sitten
vanhempi
commit
a17452cd80
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Enclave/storage.cpp

+ 1 - 1
Enclave/storage.cpp

@@ -396,7 +396,7 @@ void storage_received(MsgBuffer &storage_buf)
         uint32_t num_user_msgs = 0; // number of messages to the user
         uint8_t sel;
         for (uint32_t i=0; i<num_msgs; ++i) {
-            uid = (*(uint32_t*) msg) &= uid_mask;
+            uid = (*(uint32_t*) msg) & uid_mask;
             num_user_msgs = oselect_uint32_t(1, num_user_msgs+1,
                 uid == prev_uid);
             // Select if messages per user not exceeded and msg is not padding