diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2013-07-20 22:20:43 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2013-07-20 22:20:43 +0000 |
commit | 3e1d217fd81ec959c53b96f555ed3ee9c6e688ab (patch) | |
tree | 3466fd336b93b5c6ea954a4f28cd0e2daf398faf /usr.bin | |
parent | 38a2cf185bef4052a56e77f3955e852f09ef73af (diff) |
fix verification error in (as-yet usused) KRL signature checking path
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/krl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/krl.c b/usr.bin/ssh/krl.c index ab2d8ca8a52..57efdc2f6d5 100644 --- a/usr.bin/ssh/krl.c +++ b/usr.bin/ssh/krl.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: krl.c,v 1.12 2013/06/20 19:15:06 markus Exp $ */ +/* $OpenBSD: krl.c,v 1.13 2013/07/20 22:20:42 djm Exp $ */ #include <sys/types.h> #include <sys/param.h> @@ -971,7 +971,7 @@ ssh_krl_from_blob(Buffer *buf, struct ssh_krl **krlp, } /* Check signature over entire KRL up to this point */ if (key_verify(key, blob, blen, - buffer_ptr(buf), buffer_len(buf) - sig_off) == -1) { + buffer_ptr(buf), buffer_len(buf) - sig_off) != 1) { error("bad signaure on KRL"); goto out; } |