summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2000-02-12 09:21:24 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2000-02-12 09:21:24 +0000
commit4687c62062a807edbe9c73228403430b0dd98c9c (patch)
tree0b003e16a693ea9bed34d46419b6829dec912a80
parent60eeeda65f1fb873ce90f07bcbce6411895fb29a (diff)
Merge with EOM 1.114
author: angelos Bad typo, the check should be inverted. Also, add a NOTIFY message being sent to the Responder if policy check fails at the initiator (and print a log message).
-rw-r--r--sbin/isakmpd/ike_quick_mode.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sbin/isakmpd/ike_quick_mode.c b/sbin/isakmpd/ike_quick_mode.c
index ddaffc4887e..f9ca0da4e6c 100644
--- a/sbin/isakmpd/ike_quick_mode.c
+++ b/sbin/isakmpd/ike_quick_mode.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: ike_quick_mode.c,v 1.30 2000/02/11 10:21:28 niklas Exp $ */
-/* $EOM: ike_quick_mode.c,v 1.113 2000/02/10 16:25:00 angelos Exp $ */
+/* $OpenBSD: ike_quick_mode.c,v 1.31 2000/02/12 09:21:23 niklas Exp $ */
+/* $EOM: ike_quick_mode.c,v 1.114 2000/02/12 00:11:28 angelos Exp $ */
/*
* Copyright (c) 1998, 1999, 2000 Niklas Hallqvist. All rights reserved.
@@ -856,8 +856,12 @@ initiator_recv_HASH_SA_NONCE (struct message *msg)
ipsec_decode_transform (msg, sa, proto, xf->p);
#if defined (USE_KEYNOTE)
- if (check_policy (exchange, sa, msg->isakmp_sa))
- return -1;
+ if (!check_policy (exchange, sa, msg->isakmp_sa))
+ {
+ message_drop (msg, ISAKMP_NOTIFY_NO_PROPOSAL_CHOSEN, 0, 1, 0);
+ log_print ("initiator_recv_HASH_SA_NONCE: policy check failed");
+ return -1;
+ }
#endif
}