--- a/vpnengine/ikev1lib/src/ikev1isakmpstream.cpp Thu Jan 07 13:26:15 2010 +0200
+++ b/vpnengine/ikev1lib/src/ikev1isakmpstream.cpp Mon Jan 18 21:14:04 2010 +0200
@@ -116,7 +116,7 @@
//including the SPI
iBuf.SetLength(pos + sizeof(proposal)); //leave room to insert later the proposal
TAttrib *attr=prop->iAttrList;
- for (TInt i=0; i < proposal.GetNumTrans(); i++) //Adds all the transforms
+ for (TInt i=0; (i < proposal.GetNumTrans()) && (attr != NULL); i++) //Adds all the transforms
{
if ( !attr->iNext )
next_payload = ISAKMP_PAYLOAD_NONE; // Last trasnform