Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335843
b: refs/heads/master
c: 916492b
h: refs/heads/master
i:
  335841: 7a368e8
  335839: 126df26
v: v3
  • Loading branch information
Chun-Yi Lee authored and Linus Torvalds committed Nov 21, 2012
1 parent 72b581f commit 186d03f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99b6e1e7233073a23a20824db8c5260a723ed192
refs/heads/master: 916492b1e1a186260951831c53a53d8a448dc026
6 changes: 3 additions & 3 deletions trunk/scripts/sign-file
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 186d03f

Please sign in to comment.