aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlacme-accountd3
1 files changed, 2 insertions, 1 deletions
diff --git a/lacme-accountd b/lacme-accountd
index 5478cc2..5109888 100755
--- a/lacme-accountd
+++ b/lacme-accountd
@@ -269,7 +269,8 @@ sub conn($$$) {
last;
}
- my $sig = $SIGN->($data) // panic();
+ my $sig = eval { $SIGN->($data) };
+ panic($@) if $@ or !defined $sig;
logmsg(noquiet => "[$id] SIGNED ", $req);
$out->printflush( encode_base64url($sig), "\r\n" ) or warn "print: $!";
}