diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-10-24 18:56:45 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-10-24 18:56:45 +0800 |
commit | 037d26f055e4818616ffe5c8c3597451550e59e6 (patch) | |
tree | 05cd06345540cda5953fade41d3071a8a8d73c2d /keyimport.c | |
parent | 1a208c460b412113704c4d5f98585017ee0a6ccf (diff) |
Add buf_decrpos()
Diffstat (limited to 'keyimport.c')
-rw-r--r-- | keyimport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keyimport.c b/keyimport.c index 2b80770..e58c52d 100644 --- a/keyimport.c +++ b/keyimport.c @@ -637,7 +637,7 @@ static sign_key *openssh_read(const char *filename, const char * UNUSED(passphra buf_incrpos(blobbuf, 8); buf_eatstring(blobbuf); buf_eatstring(blobbuf); - buf_incrpos(blobbuf, -SSH_SIGNKEY_ED25519_LEN-4); + buf_decrpos(blobbuf, SSH_SIGNKEY_ED25519_LEN+4); if (buf_get_ed25519_priv_key(blobbuf, retkey->ed25519key) == DROPBEAR_SUCCESS) { errmsg = NULL; |