diff keyimport.c @ 1754:064f5be2fc45

Add buf_decrpos()
author Matt Johnston <matt@ucc.asn.au>
date Sat, 24 Oct 2020 18:56:45 +0800
parents 1051e4eea25a
children 3e0aacf0a4f3
line wrap: on
line diff
--- a/keyimport.c	Fri Oct 23 20:53:58 2020 +0800
+++ b/keyimport.c	Sat Oct 24 18:56:45 2020 +0800
@@ -637,7 +637,7 @@
 				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;