From 186d03ff8d3ee36792025b2bdfd20a9b7acecce4 Mon Sep 17 00:00:00 2001 From: Chun-Yi Lee Date: Wed, 21 Nov 2012 11:26:09 +0000 Subject: [PATCH] --- yaml --- r: 335843 b: refs/heads/master c: 916492b1e1a186260951831c53a53d8a448dc026 h: refs/heads/master i: 335841: 7a368e8e05196e8c50d5efd80a72d93f0bf394f8 335839: 126df267e5b364efb52a72c30da8fef293d719c8 v: v3 --- [refs] | 2 +- trunk/scripts/sign-file | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 726cc696daab..b89fc3ef602c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 99b6e1e7233073a23a20824db8c5260a723ed192 +refs/heads/master: 916492b1e1a186260951831c53a53d8a448dc026 diff --git a/trunk/scripts/sign-file b/trunk/scripts/sign-file index 87ca59d36e7e..974a20b661b7 100755 --- a/trunk/scripts/sign-file +++ b/trunk/scripts/sign-file @@ -156,12 +156,12 @@ sub asn1_extract($$@) if ($l == 0x1) { $len = unpack("C", substr(${$cursor->[2]}, $cursor->[0], 1)); - } elsif ($l = 0x2) { + } elsif ($l == 0x2) { $len = unpack("n", substr(${$cursor->[2]}, $cursor->[0], 2)); - } elsif ($l = 0x3) { + } elsif ($l == 0x3) { $len = unpack("C", substr(${$cursor->[2]}, $cursor->[0], 1)) << 16; $len = unpack("n", substr(${$cursor->[2]}, $cursor->[0] + 1, 2)); - } elsif ($l = 0x4) { + } elsif ($l == 0x4) { $len = unpack("N", substr(${$cursor->[2]}, $cursor->[0], 4)); } else { die $x509, ": ", $cursor->[0], ": ASN.1 element too long (", $l, ")\n";