diff -Naur openswan-2.4.9.orig/programs/pluto/ikev1_quick.c openswan-2.4.9/programs/pluto/ikev1_quick.c
--- openswan-2.4.9.orig/programs/pluto/ikev1_quick.c	2007-09-13 17:17:04.000000000 +0200
+++ openswan-2.4.9/programs/pluto/ikev1_quick.c	2007-09-17 18:30:59.000000000 +0200
@@ -764,6 +764,11 @@
 		      c->spd.this.protocol || c->spd.that.protocol ||
 		      c->spd.this.port || c->spd.that.port;
 
+    if(isakmp_sa->st_oakley.hasher == NULL) {
+	loglog(RC_LOG_SERIOUS, "st_oakley.hasher == NULL, please report to "
+	  "funkwerk support");
+        return STF_INTERNAL_ERROR;
+    }
     st->st_connection = c;
 
 #ifdef NAT_TRAVERSAL

