File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ namespace AirPodsPackets
197197 quint16 len1 = (static_cast <quint8>(data.at (index)) << 8 ) | static_cast <quint8>(data.at (index + 1 ));
198198 if (len1 != 16 )
199199 return keys;
200- index += 3 ; // Skip length and reserved byte
200+ index += 3 ; // Skip length (2 bytes) and reserved byte (1 byte)
201201
202202 keys.magicAccIRK = data.mid (index, 16 );
203203 index += 16 ;
@@ -210,7 +210,7 @@ namespace AirPodsPackets
210210 quint16 len2 = (static_cast <quint8>(data.at (index)) << 8 ) | static_cast <quint8>(data.at (index + 1 ));
211211 if (len2 != 16 )
212212 return keys;
213- index += 3 ; // Skip length and reserved byte
213+ index += 3 ; // Skip length (2 bytes) and reserved byte (1 byte)
214214
215215 keys.magicAccEncKey = data.mid (index, 16 );
216216
You can’t perform that action at this time.
0 commit comments