Skip to content

Commit fef332b

Browse files
committed
ARC :: signer died because of a malformed "Authentication-Results:" header field (sympa-community#988)
1 parent 544db3f commit fef332b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/lib/Sympa/Message.pm

+5-6
Original file line numberDiff line numberDiff line change
@@ -610,9 +610,8 @@ sub arc_seal {
610610
my $msg_as_string = $self->as_string;
611611
$msg_as_string =~ s/\r?\n/\r\n/g;
612612
$msg_as_string =~ s/\r?\z/\r\n/ unless $msg_as_string =~ /\n\z/;
613-
$arc->PRINT($msg_as_string);
614-
unless ($arc->CLOSE) {
615-
$log->syslog('err', 'Cannot ARC seal message');
613+
unless (eval { $arc->PRINT($msg_as_string) and $arc->CLOSE }) {
614+
$log->syslog('err', 'Cannot ARC seal message: %s', $EVAL_ERROR);
616615
return undef;
617616
}
618617
$log->syslog('debug2', 'ARC %s: %s', $arc->{result},
@@ -729,9 +728,9 @@ sub check_arc_chain {
729728
my $msg_as_string = $self->as_string;
730729
$msg_as_string =~ s/\r?\n/\r\n/g;
731730
$msg_as_string =~ s/\r?\z/\r\n/ unless $msg_as_string =~ /\n\z/;
732-
$arc->PRINT($msg_as_string);
733-
unless ($arc->CLOSE) {
734-
$log->syslog('err', 'Cannot verify chain of (ARC) message');
731+
unless (eval { $arc->PRINT($msg_as_string) and $arc->CLOSE }) {
732+
$log->syslog('err', 'Cannot verify chain of (ARC) message: %s',
733+
$EVAL_ERROR);
735734
return;
736735
}
737736

0 commit comments

Comments
 (0)