From 037d26f055e4818616ffe5c8c3597451550e59e6 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 24 Oct 2020 18:56:45 +0800 Subject: Add buf_decrpos() --- keyimport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keyimport.c') 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; -- cgit v1.2.3