Skip to content

Commit 76c3920

Browse files
committed
ews: avoid nullptr deref processing <t:AlternateId>
Fixes: gromox-2.23-10-g9ff3922c7 References: GXH-123
1 parent fc6799d commit 76c3920

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exch/ews/serialization.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,8 @@ void mConvertIdResponseMessage::serialize(tinyxml2::XMLElement* xml) const
14721472
{
14731473
mResponseMessageType::serialize(xml);
14741474
tinyxml2::XMLElement* altid = XMLDUMPM(AlternateId);
1475-
altid->SetAttribute("xsi:type", "t:AlternateIdType");
1475+
if (altid != nullptr)
1476+
altid->SetAttribute("xsi:type", "t:AlternateIdType");
14761477
}
14771478

14781479
mCopyFolderRequest::mCopyFolderRequest(const tinyxml2::XMLElement* xml) :

0 commit comments

Comments
 (0)