diff options
author | Rob Austein <sra@hactrn.net> | 2016-11-15 02:02:24 -0500 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-11-15 02:02:24 -0500 |
commit | ecbc49a97941b208fb162e4a6d10ca7277dc9359 (patch) | |
tree | 3fa814db2f2b559c02449b524328b148c1286f43 /rpc_server.c | |
parent | 2806585aad4b4910156cbaa24c8ea027c572365f (diff) |
Allow keystore reinitialization without re-allocating static memory.
Wiping the keystore flash requires reinitializing the keystore, but we
don't want to allocate new static memory when we do this.
Diffstat (limited to 'rpc_server.c')
-rw-r--r-- | rpc_server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc_server.c b/rpc_server.c index b6c755e..ed9a8d5 100644 --- a/rpc_server.c +++ b/rpc_server.c @@ -926,9 +926,9 @@ hal_error_t hal_rpc_server_init(void) { hal_error_t err; - if ((err = hal_ks_init(hal_ks_volatile_driver)) != HAL_OK || - (err = hal_ks_init(hal_ks_token_driver)) != HAL_OK || - (err = hal_rpc_server_transport_init()) != HAL_OK) + if ((err = hal_ks_init(hal_ks_volatile_driver, 1)) != HAL_OK || + (err = hal_ks_init(hal_ks_token_driver, 1)) != HAL_OK || + (err = hal_rpc_server_transport_init()) != HAL_OK) return err; return HAL_OK; |