Skip to content

Commit

Permalink
better check
Browse files Browse the repository at this point in the history
  • Loading branch information
bigio committed Jun 14, 2022
1 parent 4fb6dc2 commit a811812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/lib/Mail/MIMEDefang/Authres.pm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ sub md_authres {
);
$spfres = $spf_server->process($request);
}
if(defined $spfres or ((defined $dkimpk) and ($ksize > 0))) {
if((defined $spfres and defined $spfres->code) or ((defined $dkimpk) and ($ksize > 0))) {
$authres = "$serverdomain (MIMEDefang);";
if(defined $dkimpk) {
my $dkimb = substr($dkimpk, 0, 8);
Expand Down

0 comments on commit a811812

Please sign in to comment.