Fix for issue (not sending application_error from picoquic_close)
@@ -3407,7 +3407,7 @@ uint8_t * picoquic_format_application_close_frame(picoquic_cnx_t* cnx,
uint8_t* bytes0 = bytes;
if ((bytes = picoquic_frames_uint8_encode(bytes, bytes_max, picoquic_frame_type_application_close)) != NULL &&
- (bytes = picoquic_frames_varint_encode(bytes, bytes_max, cnx->local_error)) != NULL &&
+ (bytes = picoquic_frames_varint_encode(bytes, bytes_max, cnx->application_error)) != NULL &&
(bytes = picoquic_frames_uint8_encode(bytes, bytes_max, 0)) != NULL) {
*is_pure_ack = 0;
}
