summaryrefslogtreecommitdiffhomepage
path: root/keyimport.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyimport.c')
-rw-r--r--keyimport.c2
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;