diff options
author | Damien Miller <djm@mindrot.org> | 2013-02-12 00:54:54 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-02-12 00:54:54 +0100 |
commit | 6045f5d5748582dff473934d760cf0e7e892da8b (patch) | |
tree | 0dbceeee28084e98c72c1dc5a6f9fa326934ccc4 /krl.c | |
parent | - (djm) OpenBSD CVS Sync (diff) | |
download | openssh-6045f5d5748582dff473934d760cf0e7e892da8b.tar.xz openssh-6045f5d5748582dff473934d760cf0e7e892da8b.zip |
- djm@cvs.openbsd.org 2013/01/24 22:08:56
[krl.c]
skip serial lookup when cert's serial number is zero
Diffstat (limited to 'krl.c')
-rw-r--r-- | krl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: krl.c,v 1.5 2013/01/24 21:45:37 djm Exp $ */ +/* $OpenBSD: krl.c,v 1.6 2013/01/24 22:08:56 djm Exp $ */ #include "includes.h" @@ -1149,7 +1149,7 @@ is_key_revoked(struct ssh_krl *krl, const Key *key) } /* Legacy cert formats lack serial numbers */ - if (key_cert_is_legacy(key)) + if (key_cert_is_legacy(key) || key->cert->serial == buf0) return 0; bzero(&rs, sizeof(rs)); |