File openswan-2.6.16-dpd_null_state.patch of Package openswan
--- Makefile.inc
+++ Makefile.inc 2009/03/23 16:04:19
@@ -301,7 +301,7 @@ USE_KLIPS?=true
USE_PFKEYv2?=true
# Build support for 2.6 KLIPS/MAST variation in pluto
-USE_MAST?=true
+USE_MAST?=false
# MAST is generally a prerequisite for SAREF support in applications
USE_SAREF_KERNEL=false
--- programs/pluto/ikev1.c
+++ programs/pluto/ikev1.c 2009/03/23 16:04:19
@@ -657,9 +657,17 @@ informational(struct msg_digest *md)
switch (n->isan_type)
{
case R_U_THERE:
+ if(st==NULL) {
+ loglog(RC_LOG_SERIOUS, "received bogus R_U_THERE informational message");
+ return STF_IGNORE;
+ }
return dpd_inI_outR(st, n, n_pbs);
case R_U_THERE_ACK:
+ if(st==NULL) {
+ loglog(RC_LOG_SERIOUS, "received bogus R_U_THERE_ACK informational message");
+ return STF_IGNORE;
+ }
return dpd_inR(st, n, n_pbs);
case PAYLOAD_MALFORMED: