]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Update crypto/objects/obj_dat.pl
authorBob Beck <beck@obtuse.com>
Mon, 4 May 2026 23:59:18 +0000 (17:59 -0600)
committerNeil Horman <nhorman@openssl.org>
Thu, 7 May 2026 15:41:04 +0000 (11:41 -0400)
Co-authored-by: Matt Caswell <matt@openssl.foundation>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
MergeDate: Thu May  7 15:41:15 2026
(Merged from https://github.com/openssl/openssl/pull/31046)

crypto/objects/obj_dat.pl

index a2bba8b0fa707bfcb3f5f215aadc29772f26504a..54c42cdbebfe0d3051e859c8d9a9e93540f230ae 100644 (file)
@@ -219,8 +219,8 @@ printf "static const unsigned int obj_objs[NUM_OBJ] = {\n";
 # Compare DER; prefer shorter; if some length, use the "smaller" encoding.
 sub obj_cmp
 {
-    my $A = defined($obj_len{$obj{$nid{$a}}}) ? $obj_len{$obj{$nid{$a}}} : 0;
-    my $B = defined($obj_len{$obj{$nid{$b}}}) ? $obj_len{$obj{$nid{$b}}} : 0;
+    my $A = $obj_len{$obj{$nid{$a}}} // 0;
+    my $B = $obj_len{$obj{$nid{$b}}} // 0;
     my $r = $A - $B;
     return $r if $r != 0;
     return 0 if $A == 0;