X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FProgrammedAnswers.cpp;h=9356dac03140c22f0c6cce38905f40b315edab63;hb=888c763c650fbe314ba47bb0840c47fc508cc837;hp=f617282af1be29e34e0b05dd9cb29de5e52f008f;hpb=129500a50678c43ff28fb0054d6197899b8c0b2c;p=anna.git diff --git a/example/diameter/launcher/ProgrammedAnswers.cpp b/example/diameter/launcher/ProgrammedAnswers.cpp index f617282..9356dac 100644 --- a/example/diameter/launcher/ProgrammedAnswers.cpp +++ b/example/diameter/launcher/ProgrammedAnswers.cpp @@ -14,7 +14,7 @@ #include // Process -#include "ProgrammedAnswers.hpp" +#include void ProgrammedAnswers::clear () throw() { @@ -45,6 +45,9 @@ void ProgrammedAnswers::dump () throw() { } void ProgrammedAnswers::addMessage(int code, anna::diameter::codec::Message *message) throw() { + if (!message) return; // just in case + message->setEngine(a_codecEngine); // just in case + reacting_answers_const_iterator it = a_deques.find(code); if (it != a_deques.end()) { it->second->push_back(message);