diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-06-14 23:23:53 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-06-14 23:23:53 +0000 |
commit | 308fad517d81793373189a40daa20e06c510b937 (patch) | |
tree | 1f649997be3dfbf1e781260310729c68489e2fdb /sbin/iked | |
parent | 4352486464fdc177d68bb32455b40349f6e081e7 (diff) |
check if cert is available and valid
Diffstat (limited to 'sbin/iked')
-rw-r--r-- | sbin/iked/ikev2_msg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/ikev2_msg.c b/sbin/iked/ikev2_msg.c index 446d8a399a1..5fa774b7baa 100644 --- a/sbin/iked/ikev2_msg.c +++ b/sbin/iked/ikev2_msg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2_msg.c,v 1.5 2010/06/14 21:12:56 reyk Exp $ */ +/* $OpenBSD: ikev2_msg.c,v 1.6 2010/06/14 23:23:52 reyk Exp $ */ /* $vantronix: ikev2.c,v 1.101 2010/06/03 07:57:33 reyk Exp $ */ /* @@ -674,7 +674,7 @@ ikev2_msg_authverify(struct iked *env, struct iked_sa *sa, keytype = 0; break; default: - if (id == NULL) { + if (!id->id_type || !ibuf_length(id->id_buf)) { log_debug("%s: no cert found", __func__); goto done; } |