changeset 1 | a579325b79dd |
parent 0 | af10295192d8 |
child 21 | abbed5a4b42a |
--- a/networksecurity/ipsec/ipsec6/src/key_msg.cpp Tue Jan 26 15:23:49 2010 +0200 +++ b/networksecurity/ipsec/ipsec6/src/key_msg.cpp Tue Feb 02 01:27:53 2010 +0200 @@ -571,8 +571,12 @@ TInt iTemp; CSecurityAssoc *sa; sa = Lookup(aBase.sadb_msg_satype, aMsg.iSa.iExt->sadb_sa_spi, aMsg.iDstAddr.iAddr(), iTemp); - sa->SetErrorValue(errNo); - + + if(sa) + { + sa->SetErrorValue(errNo); + } + if (errNo == KErrNone) { DeliverRegistered(aMsg);