From: Dr. Stephen Henson Date: Fri, 27 Jun 2014 02:17:15 +0000 (+0100) Subject: Fix OID encoding for one component. X-Git-Tag: master-post-reformat~662 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=95791bf94150f2e3dc96fd2462627aaf354e92e4;p=oweals%2Fopenssl.git Fix OID encoding for one component. OIDs with one component don't have an encoding. PR#2556 (Bug#1) --- diff --git a/crypto/objects/obj_dat.pl b/crypto/objects/obj_dat.pl index c67f71c327..86bcefb97a 100644 --- a/crypto/objects/obj_dat.pl +++ b/crypto/objects/obj_dat.pl @@ -115,7 +115,7 @@ for ($i=0; $i<$n; $i++) $out.="\"$sn\""; $out.=","."\"$ln\""; $out.=",NID_$nid{$i},"; - if (defined($obj{$nid{$i}})) + if (defined($obj{$nid{$i}}) && $objd{$obj{$nid{$i}}} =~ /,/) { $v=$objd{$obj{$nid{$i}}}; $v =~ s/L//g;