Fix: change check for domain order and existance of domain message header

This commit is contained in:
mailwl 2018-02-20 21:59:58 +03:00
parent 1572c45aa0
commit 827152d1fd
3 changed files with 4 additions and 3 deletions

View file

@ -118,7 +118,8 @@ public:
AlignWithPadding();
if (context.Session()->IsDomain() && context.GetDomainMessageHeader()) {
const bool request_has_domain_header{context.GetDomainMessageHeader() != nullptr};
if (context.Session()->IsDomain() && request_has_domain_header) {
IPC::DomainMessageHeader domain_header{};
domain_header.num_objects = num_domain_objects;
PushRaw(domain_header);