Fix crash when parsing report with empty <auth_results></auth_results>

This commit is contained in:
Sean Whalen
2018-06-20 09:47:50 -04:00
parent 70d26506bb
commit 1761f12604
4 changed files with 57 additions and 4 deletions

View File

@@ -0,0 +1,39 @@
<?xml version="1.0"?>
<feedback>
<version>1.0</version>
<report_metadata>
<org_name>example.net</org_name>
<email>postmaster@example.net</email>
<report_id>b043f0e264cf4ea995e93765242f6dfb</report_id>
<date_range>
<begin>1529366400</begin>
<end>1529452799</end>
</date_range>
</report_metadata>
<policy_published>
<domain>example.com</domain>
<adkim>r</adkim>
<aspf>r</aspf>
<p>none</p>
<sp>none</sp>11
<pct>100</pct>
<fo>0</fo>
</policy_published>
<record>
<row>
<source_ip>199.230.200.36</source_ip>
<count>1</count>
<policy_evaluated>
<disposition>none</disposition>
<dkim>fail</dkim>
<spf>fail</spf>
</policy_evaluated>
</row>
<identifiers>
<envelope_from>example.com</envelope_from>
<header_from>example.com</header_from>
</identifiers>
<auth_results>
</auth_results>
</record>
</feedback>