Commit 9150884c authored by jan.koester's avatar jan.koester
Browse files

fixes

parent ffa61c61
Loading
Loading
Loading
Loading
+7 −0
Changes for src/quic.cpp: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1610,6 +1610,9 @@ void quic::processApplicationPacket(const uint8_t* data, size_t len) {
    
    // Application packets use the negotiated cipher
    if (!unprotectPacket(data, len, header, payload, pn, key, iv, hp, false)) {
        if (!_is_server) {
            fprintf(stderr, "[QUIC] unprotectPacket FAILED len=%zu\n", len);
        }
        return;
    }
    
@@ -2541,6 +2544,10 @@ void quic::processFrame(const uint8_t* data, size_t len, size_t& offset) {
    uint64_t frame_type = decodeVarInt(&data[offset], type_bytes);
    offset += type_bytes;

    if (!_is_server) {
        fprintf(stderr, "[QUIC-FRAME] type=0x%02llx\n", (unsigned long long)frame_type);
    }
    
    switch (frame_type) {
        case 0x00:  // PADDING
            // Just skip - padding frames are 1 byte each