- djm@cvs.openbsd.org 2013/07/20 22:20:42
[krl.c] fix verification error in (as-yet usused) KRL signature checking path
This commit is contained in:
parent
63ddc899d2
commit
c8669a8cd2
|
@ -1,3 +1,9 @@
|
||||||
|
20130725
|
||||||
|
- (djm) OpenBSD CVS Sync
|
||||||
|
- djm@cvs.openbsd.org 2013/07/20 22:20:42
|
||||||
|
[krl.c]
|
||||||
|
fix verification error in (as-yet usused) KRL signature checking path
|
||||||
|
|
||||||
20130720
|
20130720
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
- markus@cvs.openbsd.org 2013/07/19 07:37:48
|
- markus@cvs.openbsd.org 2013/07/19 07:37:48
|
||||||
|
|
4
krl.c
4
krl.c
|
@ -14,7 +14,7 @@
|
||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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 "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
|
@ -973,7 +973,7 @@ ssh_krl_from_blob(Buffer *buf, struct ssh_krl **krlp,
|
||||||
}
|
}
|
||||||
/* Check signature over entire KRL up to this point */
|
/* Check signature over entire KRL up to this point */
|
||||||
if (key_verify(key, blob, blen,
|
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");
|
error("bad signaure on KRL");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue