From 90da3c93b66a387ccecb643d82f32fb4db750b23 Mon Sep 17 00:00:00 2001 From: Hakan Olsson Date: Tue, 9 Jul 2002 14:31:46 +0000 Subject: HASH payload validation does not require an exchange. --- sbin/isakmpd/message.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sbin/isakmpd/message.c b/sbin/isakmpd/message.c index 722a5d7deeb..fcb585fc2a7 100644 --- a/sbin/isakmpd/message.c +++ b/sbin/isakmpd/message.c @@ -1,4 +1,4 @@ -/* $OpenBSD: message.c,v 1.55 2002/07/04 22:23:49 ho Exp $ */ +/* $OpenBSD: message.c,v 1.56 2002/07/09 14:31:45 ho Exp $ */ /* $EOM: message.c,v 1.156 2000/10/10 12:36:39 provos Exp $ */ /* @@ -486,14 +486,6 @@ message_validate_delete (struct message *msg, struct payload *p) static int message_validate_hash (struct message *msg, struct payload *p) { - if (!msg->exchange) - { - /* We should have an exchange at this point. */ - log_print ("message_validate_hash: payload out of sequence"); - message_drop (msg, ISAKMP_NOTIFY_PAYLOAD_MALFORMED, 0, 1, 1); - return -1; - } - /* XXX Not implemented yet. */ return 0; } -- cgit v1.2.3