Mercurial > dropbear
diff signkey.c @ 1754:064f5be2fc45
Add buf_decrpos()
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Oct 2020 18:56:45 +0800 |
parents | d5d25ce2a2ed |
children | fa6ff07dcc77 |
line wrap: on
line diff
--- a/signkey.c Fri Oct 23 20:53:58 2020 +0800 +++ b/signkey.c Sat Oct 24 18:56:45 2020 +0800 @@ -235,7 +235,7 @@ *type = keytype; /* Rewind the buffer back before "ssh-rsa" etc */ - buf_incrpos(buf, -len - 4); + buf_decrpos(buf, len + 4); #if DROPBEAR_DSS if (keytype == DROPBEAR_SIGNKEY_DSS) { @@ -316,7 +316,7 @@ *type = keytype; /* Rewind the buffer back before "ssh-rsa" etc */ - buf_incrpos(buf, -len - 4); + buf_decrpos(buf, len + 4); #if DROPBEAR_DSS if (keytype == DROPBEAR_SIGNKEY_DSS) {