Thu Jan 24 06:47:51 2013 UTC ()
Fix handling of deletion notification.


(tteras)
diff -r1.48 -r1.49 src/crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c

cvs diff -r1.48 -r1.49 src/crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c (expand / switch to context diff)
--- src/crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c 2012/08/29 12:01:30 1.48
+++ src/crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c 2013/01/24 06:47:50 1.49
@@ -1,4 +1,4 @@
-/*	$NetBSD: isakmp_inf.c,v 1.48 2012/08/29 12:01:30 tteras Exp $	*/
+/*	$NetBSD: isakmp_inf.c,v 1.49 2013/01/24 06:47:50 tteras Exp $	*/
 
 /* Id: isakmp_inf.c,v 1.44 2006/05/06 20:45:52 manubsd Exp */
 
@@ -492,7 +492,7 @@
 		"delete payload for protocol %s\n",
 		s_ipsecdoi_proto(delete->proto_id));
 
-	if(!iph1->rmconf->weak_phase1_check && !encrypted) {
+	if((iph1 == NULL || !iph1->rmconf->weak_phase1_check) && !encrypted) {
 		plog(LLV_WARNING, LOCATION, iph1->remote,
 			"Ignoring unencrypted delete payload "
 			"(check the weak_phase1_check option)\n");