Skip to content

Commit

Permalink
make fd_quic_handle_v1_one_rtt return tot_sz instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
nbridge-jump committed Aug 16, 2023
1 parent cdf280e commit e8bc56f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/tango/quic/fd_quic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,7 @@ fd_quic_handle_v1_one_rtt( fd_quic_t * quic, fd_quic_conn_t * conn, fd_quic_pkt_
ulong rc = fd_quic_decode_one_rtt( one_rtt, cur_ptr, cur_sz );
if( rc == FD_QUIC_PARSE_FAIL ) {
FD_DEBUG( FD_LOG_DEBUG(( "fd_quic_decode_one_rtt failed" )) );
return 0;
return FD_QUIC_PARSE_FAIL;
}

/* generate one_rtt secrets, keys etc */
Expand Down Expand Up @@ -2193,7 +2193,7 @@ fd_quic_handle_v1_one_rtt( fd_quic_t * quic, fd_quic_conn_t * conn, fd_quic_pkt_
uint pn_space = fd_quic_enc_level_to_pn_space( enc_level );
conn->exp_pkt_number[pn_space] = pkt_number + 1u;

return 0;
return tot_sz;
}


Expand Down Expand Up @@ -4782,11 +4782,6 @@ fd_quic_connect( fd_quic_t * quic,
goto fail_tls_hs;
}

FD_DEBUG(
fd_quic_tls_hs_data_t const * hs_data = fd_quic_tls_get_hs_data( tls_hs, 0 );
printf( "hs_data @ enc_level 0: %p\n", (void*)hs_data );
);

conn->tls_hs = tls_hs;

fd_quic_crypto_suite_t *suite =
Expand Down

0 comments on commit e8bc56f

Please sign in to comment.