Skip to content
Snippets Groups Projects
Commit 6b825917 authored by James M Snell's avatar James M Snell
Browse files

Fix setting remote transport params order

Fixes: https://github.com/ngtcp2/ngtcp2/issues/213
parent 462d6499
No related merge requests found
......@@ -229,14 +229,14 @@ int ngtcp2_crypto_derive_and_install_key(
}
break;
case NGTCP2_CRYPTO_LEVEL_APP:
rv = ngtcp2_conn_install_key(conn, rx_secret, tx_secret, rx_key, rx_iv,
rx_hp_key, tx_key, tx_iv, tx_hp_key, secretlen,
keylen, ivlen);
rv = ngtcp2_crypto_set_remote_transport_params(conn, tls, side);
if (rv != 0) {
return -1;
}
rv = ngtcp2_crypto_set_remote_transport_params(conn, tls, side);
rv = ngtcp2_conn_install_key(conn, rx_secret, tx_secret, rx_key, rx_iv,
rx_hp_key, tx_key, tx_iv, tx_hp_key, secretlen,
keylen, ivlen);
if (rv != 0) {
return -1;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment