Base protocol codec for comm::Engine. Supported retransmissions
[anna.git] / include / anna / diameter / app / dcca / Message.hpp
index a0455d2..006e23a 100644 (file)
@@ -84,7 +84,7 @@ public:
       const anna::diameter::codec::Avp * sid;
       int pos = 1;
 
-      while(sid = getAvp(helpers::dcca::AVPID__Subscription_Id, pos++))
+      while((sid = getAvp(helpers::dcca::AVPID__Subscription_Id, pos++)))
       if(subscriptionIdType == sid->getAvp(helpers::dcca::AVPID__Subscription_Id_Type)->getEnumerated()->getValue())
         return sid->getAvp(helpers::dcca::AVPID__Subscription_Id_Data)->getUTF8String();
         return NULL;
@@ -230,7 +230,7 @@ public:
       const anna::diameter::codec::Avp * uei;
       int pos = 1;
 
-      while(uei = getAvp(helpers::dcca::AVPID__User_Equipment_Info, pos++))
+      while((uei = getAvp(helpers::dcca::AVPID__User_Equipment_Info, pos++)))
       if(userEquipmentInfoType == uei->getAvp(helpers::dcca::AVPID__User_Equipment_Info_Type)->getEnumerated()->getValue())
         return uei->getAvp(helpers::dcca::AVPID__User_Equipment_Info_Value)->getOctetString();
         return NULL;