/[smeserver]/rpms/qpsmtpd/sme9/qpsmtpd-0.96-check_rua_is_defined.patch
ViewVC logotype

Contents of /rpms/qpsmtpd/sme9/qpsmtpd-0.96-check_rua_is_defined.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat May 28 08:41:36 2016 UTC (8 years, 5 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-5_el6_sme, qpsmtpd-0_96-6_el6_sme, qpsmtpd-0_96-8_el6_sme, qpsmtpd-0_96-7_el6_sme, qpsmtpd-0_96-10_el6_sme, qpsmtpd-0_96-11_el6_sme, qpsmtpd-0_96-9_el6_sme, HEAD
Error occurred while calculating annotation data.
* Sat May 28 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-5.sme
- Check rua is defined before trying to parse it to prevent an error
  if a domain has a DMARC entry published with no rua [SME: 9507]

1 diff -Nur qpsmtpd-0.96/plugins/dmarc qpsmtpd-0.96_bz9206/plugins/dmarc
2 --- qpsmtpd-0.96/plugins/dmarc 2016-05-28 10:29:34.469470149 +0200
3 +++ qpsmtpd-0.96_bz9206/plugins/dmarc 2016-05-28 10:33:36.482470978 +0200
4 @@ -145,7 +145,7 @@
5 my $pol;
6 eval { $pol = $dmarc->result->published; };
7 if ( $self->{_args}{reporting} && $pol ) {
8 - if ( $dmarc->has_valid_reporting_uri($pol->rua) ) {
9 + if ( $pol->rua && $dmarc->has_valid_reporting_uri($pol->rua) ) {
10 eval { $dmarc->save_aggregate(); };
11 $self->log(LOGERROR, $@ ) if $@;
12 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed