aboutsummaryrefslogtreecommitdiff
path: root/rpc_client.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-18 22:52:22 -0400
committerRob Austein <sra@hactrn.net>2016-05-18 22:52:22 -0400
commit9f4389f372576c377a070e18ca402482de9cdf21 (patch)
tree80045ff1decd9de318479fb68f6259bfa0c79b65 /rpc_client.c
parent818c1434a93cde13e349a73bd617b0a98a51ad76 (diff)
Impressive how hard it can be to diagnose getting everything but the RPC opcode right.
Diffstat (limited to 'rpc_client.c')
-rw-r--r--rpc_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc_client.c b/rpc_client.c
index 3a84305..4a919a3 100644
--- a/rpc_client.c
+++ b/rpc_client.c
@@ -522,7 +522,7 @@ static hal_error_t pkey_remote_rename(const hal_pkey_handle_t pkey,
size_t ilen = sizeof(inbuf);
hal_error_t rpc_ret;
- check(hal_xdr_encode_int(&optr, olimit, RPC_FUNC_PKEY_DELETE));
+ check(hal_xdr_encode_int(&optr, olimit, RPC_FUNC_PKEY_RENAME));
check(hal_xdr_encode_int(&optr, olimit, pkey.handle));
check(hal_xdr_encode_buffer(&optr, olimit, name, name_len));
check(hal_rpc_send(outbuf, optr - outbuf));