[Openswan dev] [PATCH] Fix delayed crypto crash

Herbert Xu herbert at gondor.apana.org.au
Thu Sep 29 17:38:09 CEST 2005


Hi:

When we suspend a state because the skeyids haven't been calculated yet,
the message is freed even though the state still needs it.

This patch fixes the typo that causes this.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-------------- next part --------------
Index: programs/pluto/demux.c
===================================================================
RCS file: /public/cvs/openswan-2/programs/pluto/demux.c,v
retrieving revision 1.233
diff -u -r1.233 demux.c
--- programs/pluto/demux.c	26 Sep 2005 23:35:28 -0000	1.233
+++ programs/pluto/demux.c	29 Sep 2005 06:33:47 -0000
@@ -1996,7 +1996,7 @@
 
 	if(st->st_suspended_md) { release_md(st->st_suspended_md); }
 	st->st_suspended_md = md;
-	mdp = NULL;
+	*mdp = NULL;
 	return;
     }
 


More information about the Dev mailing list