Skip to content

Commit

Permalink
ews: avoid nullptr deref processing <t:AlternateId>
Browse files Browse the repository at this point in the history
Fixes: gromox-2.23-10-g9ff3922c7
References: GXH-123
  • Loading branch information
jengelh committed Jan 5, 2025
1 parent fc6799d commit 76c3920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exch/ews/serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,8 @@ void mConvertIdResponseMessage::serialize(tinyxml2::XMLElement* xml) const
{
mResponseMessageType::serialize(xml);
tinyxml2::XMLElement* altid = XMLDUMPM(AlternateId);
altid->SetAttribute("xsi:type", "t:AlternateIdType");
if (altid != nullptr)
altid->SetAttribute("xsi:type", "t:AlternateIdType");
}

mCopyFolderRequest::mCopyFolderRequest(const tinyxml2::XMLElement* xml) :
Expand Down

0 comments on commit 76c3920

Please sign in to comment.