projects
/
platform
/
upstream
/
libtasn1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf99716
)
DER decoding: optimize tail seek by using the value providing by _asn1_append_sequenc...
author
Nikos Mavrogiannopoulos
<nmav@redhat.com>
Wed, 4 Jun 2014 15:42:46 +0000
(17:42 +0200)
committer
Nikos Mavrogiannopoulos
<nmav@redhat.com>
Wed, 4 Jun 2014 15:42:50 +0000
(17:42 +0200)
lib/decoding.c
patch
|
blob
|
history
diff --git
a/lib/decoding.c
b/lib/decoding.c
index
199580c
..
5f5d55b
100644
(file)
--- a/
lib/decoding.c
+++ b/
lib/decoding.c
@@
-1292,9
+1292,7
@@
asn1_der_decoding (asn1_node * element, const void *ider, int ider_len,
if (!HAVE_TWO(ider_len) || ((der[counter]) || der[counter + 1]))
{
_asn1_append_sequence_set (p, &ptail);
- p = p->down;
- while (p->right)
- p = p->right;
+ p = ptail;
move = RIGHT;
continue;
}
@@
-1309,9
+1307,7
@@
asn1_der_decoding (asn1_node * element, const void *ider, int ider_len,
if (len2 > counter)
{
_asn1_append_sequence_set (p, &ptail);
- p = p->down;
- while (p->right)
- p = p->right;
+ p = ptail;
move = RIGHT;
continue;
}