--- a/commsfwsupport/commselements/nodemessages/src/nm_messages.cpp Tue Aug 31 16:25:36 2010 +0300
+++ b/commsfwsupport/commselements/nodemessages/src/nm_messages.cpp Wed Sep 01 12:35:48 2010 +0100
@@ -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);
}