diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-06-27 03:17:15 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-06-27 14:35:07 +0100 |
commit | 95791bf94150f2e3dc96fd2462627aaf354e92e4 (patch) | |
tree | 6847cec118f25feb25c4dd317f8076dc8d7c667d /crypto/objects | |
parent | d2aea038297e0c64ca66e6844cbb37377365885e (diff) |
Fix OID encoding for one component.
OIDs with one component don't have an encoding.
PR#2556 (Bug#1)
Diffstat (limited to 'crypto/objects')
-rw-r--r-- | crypto/objects/obj_dat.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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; |