< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index |
Actually, this will break certain header types. An empty HFV has meaning in some cases that is distinct from the header not being present. The code at fault is the following: *snip* const Data& SipMessage::getRFC2543TransactionId() const { if(!( exists(h_Vias) && header(h_Vias).front().exists(p_branch) && header(h_Vias).front().param(p_branch).hasMagicCookie() ) ) { if (mRFC2543TransactionId.empty()) { compute2543TransactionHash(); } } return mRFC2543TransactionId; } *snip* This needs to read as follows: *snip* const Data& SipMessage::getRFC2543TransactionId() const { if(!( exists(h_Vias) && !header(h_Vias).empty() && header(h_Vias).front().exists(p_branch) && header(h_Vias).front().param(p_branch).hasMagicCookie() ) ) { if (mRFC2543TransactionId.empty()) { compute2543TransactionHash(); } } return mRFC2543TransactionId; } *snip* Best regards, Byron Campen
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature