From 5b147a90a7b48880744fe9ea8e8bb6691adc1a89 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 18 Oct 2010 09:41:25 -0400 Subject: [PATCH] fix some broken syntax --- Crypt/Monkeysphere/MSVA/Client.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Crypt/Monkeysphere/MSVA/Client.pm b/Crypt/Monkeysphere/MSVA/Client.pm index 751f5f5..d657a98 100644 --- a/Crypt/Monkeysphere/MSVA/Client.pm +++ b/Crypt/Monkeysphere/MSVA/Client.pm @@ -29,6 +29,7 @@ use Crypt::Monkeysphere::MSVA::Logger; use LWP::UserAgent; use HTTP::Request; + use Module::Load::Conditional; sub log { my $self = shift; @@ -86,8 +87,9 @@ $self->log('debug', "pkctype: %s\n", $pkctype); if ($pkctype eq 'x509der') { - if $self->{logger}->is_logging_at('verbose') { + if ($self->{logger}->is_logging_at('verbose')) { if (Module::Load::Conditional::can_load('modules' => { 'Crypt::X509' => undef })) { + require Crypt::X509; my $cert = Crypt::X509->new(cert => $pkcdata); if ($cert->error) { $self->log('error', "failed to parse this X.509 cert before sending it to the agent\n"); -- 2.26.2