Fix uninitialized stack data in the periodic ping payload

This commit is contained in:
Cameron Gutman committed 2026-10-12 23:31:33 -05:00
1 parent f900dd4767
commit e2722dc837
1 file changed
+1 -1
+1 -1
View File
@@ -1392,7 +1392,7 @@ static void lossStatsThreadFunc(void* context) {
char periodicPingPayload[8];
BbInitializeWrappedBuffer(&byteBuffer, periodicPingPayload, 0, sizeof(periodicPingPayload), BYTE_ORDER_LITTLE);
BbPut16(&byteBuffer, 4); // Length of payload
BbPut32(&byteBuffer, 4); // Length of payload
BbPut32(&byteBuffer, 0); // Timestamp?
while (!PltIsThreadInterrupted(&lossStatsThread)) {