tcause.error_code = error_code;
tcause.frame_type = frame_type;
tcause.reason = reason;
+ tcause.reason_len = strlen(reason);
ch_start_terminating(ch, &tcause, 0);
}
/* If we have a FIN awaiting retirement and no data before it... */
/* Let RSTREAM know we've consumed this FIN. */
if (!ossl_quic_rstream_read(qs->rstream, buf, sizeof(buf),
- &bytes_read, &is_fin)) {
- bytes_read = 0;
- is_fin = 0;
- }
+ &bytes_read, &is_fin))
+ return 0;
assert(is_fin && bytes_read == 0);
assert(qs->recv_state == QUIC_RSTREAM_STATE_DATA_RECVD);
retire_prior_to = 1;
break;
case 4:
- /* Cheese it by using our actual CID so we don't break connectivity. */
+ /* Use our actual CID so we don't break connectivity. */
ossl_quic_channel_get_diag_local_cid(ch, &new_cid);
seq_no = 2;
OP_END
};
-/* 51. Fault injection - PATH_CHALLENGE is ignored */
+/* 51. Fault injection - PATH_RESPONSE is ignored */
static const struct script_op script_51[] = {
OP_S_SET_INJECT_PLAIN (script_41_inject_plain)
OP_C_SET_ALPN ("ossltest")
OP_END
};
-/* 57. Fault injection - NEW_CONN_ID with lower seq no ignored */
+/* 57. Fault injection - NEW_CONN_ID with lower seq so ignored */
static const struct script_op script_57[] = {
OP_S_SET_INJECT_PLAIN (script_39_inject_plain)
OP_C_SET_ALPN ("ossltest")
extensions, length = 209
extension_type=UNKNOWN(57), length=49
0000 - 0c 00 0f 00 01 04 80 00-75 30 03 02 44 b0 0e ........u0..D..
- 000f - 01 02 04 04 80 20 00 00-05 04 80 20 00 00 06 ..... ..... ...
- 001e - 04 80 20 00 00 07 04 80-20 00 00 08 02 40 64 .. ..... ....@d
+ 000f - 01 02 04 04 80 0c 00 00-05 04 80 08 00 00 06 ...............
+ 001e - 04 80 08 00 00 07 04 80-08 00 00 08 02 40 64 .............@d
002d - 09 02 40 64 ..@d
extension_type=ec_point_formats(11), length=4
uncompressed (0)
extension_type=UNKNOWN(57), length=67
0000 - 0c 00 00 08 ?? ?? ?? ??-?? ?? ?? ?? 0f 08 ?? ....????????..?
000f - ?? ?? ?? ?? ?? ?? ?? 01-04 80 00 75 30 03 02 ???????....u0..
- 001e - 44 b0 0e 01 02 04 04 80-20 00 00 05 04 80 20 D....... .....
- 002d - 00 00 06 04 80 20 00 00-07 04 80 20 00 00 08 ..... ..... ...
+ 001e - 44 b0 0e 01 02 04 04 80-0c 00 00 05 04 80 08 D..............
+ 002d - 00 00 06 04 80 08 00 00-07 04 80 08 00 00 08 ...............
003c - 02 40 64 09 02 40 64 .@d..@d
extension_type=application_layer_protocol_negotiation(16), length=11
ossltest