Skip to content

Commit

Permalink
Merge 918cf43 into 14df39e
Browse files Browse the repository at this point in the history
  • Loading branch information
manwar committed Nov 1, 2019
2 parents 14df39e + 918cf43 commit 832d454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LWP/Protocol/https.pm
Expand Up @@ -115,7 +115,7 @@ sub _check_sock
my $cert = $sock->get_peer_certificate ||
die "Missing SSL certificate";
my $subject = $cert->subject_name;
unless ( $subject =~ /$check/ ) {
unless ( defined $subject && ( $subject =~ /$check/ ) ) {
my $ok = $self->_in_san( $check, $cert);
die "Bad SSL certificate subject: '$subject' !~ /$check/"
unless $ok;
Expand Down

0 comments on commit 832d454

Please sign in to comment.