1 |
diff -Nur qpsmtpd-0.96/plugins/dkim qpsmtpd-0.96_bz9480/plugins/dkim |
2 |
--- qpsmtpd-0.96/plugins/dkim 2016-07-05 22:08:55.700102610 +0200 |
3 |
+++ qpsmtpd-0.96_bz9480/plugins/dkim 2016-07-05 22:11:51.485075880 +0200 |
4 |
@@ -262,7 +262,9 @@ |
5 |
push @data, "selector: " . $dkim->signature->selector if $dkim->signature; |
6 |
push @data, "result: " . $dkim->result_detail if $dkim->result_detail; |
7 |
|
8 |
- foreach my $policy ($dkim->policies) { |
9 |
+ my @policies = eval { $dkim->policies }; |
10 |
+ |
11 |
+ foreach my $policy (@policies) { |
12 |
next if !$policy; |
13 |
push @data, "policy: " . $policy->as_string; |
14 |
push @data, "name: " . $policy->name; |