--- a/commsfwsupport/commselements/nodemessages/src/nm_messages.cpp Fri Sep 17 08:36:26 2010 +0300
+++ b/commsfwsupport/commselements/nodemessages/src/nm_messages.cpp Mon Oct 04 02:21:43 2010 +0300
@@ -52,6 +52,7 @@
{
const TNodeId& nodeId = address_cast<TNodeId>(aRecipient); //This message type operates on nodes
__ASSERT_DEBUG(nodeId.Ptr(), User::Panic(KSpecAssert_ElemNodeMessMesC, 1));
+ __ASSERT_ALWAYS(nodeId.Node().NodeId() == nodeId, User::Panic(KMessagesPanic, EDeceasedNodePanic)); //Address reuse protection (Ptr() may match something existing, but not necesserily the intended addresee).
nodeId.Node().ReceivedL(aSender, nodeId, *this);
}