Skip to content

Commit

Permalink
Like der_focus(), debugged der_skip() and der_enter()
Browse files Browse the repository at this point in the history
 - they were interpreting der_header() as der_header2()
 - so they now use that function
  • Loading branch information
vanrein committed Apr 23, 2019
1 parent b7fcda4 commit 3bf22b1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/der_skipenter.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ int der_skip (dercursor *crs) {
uint8_t tag;
uint8_t hlen;
size_t len;
if (der_header (crs, &tag, &len, &hlen)) {
if (der_header2 (*crs, &tag, &len, &hlen)) {
crs->derptr = NULL;
crs->derlen = 0;
return -1;
} else {
crs->derptr += len;
crs->derlen -= len;
crs->derptr += hlen + len;
crs->derlen -= hlen + len;
return 0;
}
}
Expand Down Expand Up @@ -59,8 +59,7 @@ int der_focus (dercursor *crs) {
uint8_t tag;
uint8_t hlen;
size_t len;
dercursor crs2 = *crs;
if (der_header2 (crs2, &tag, &len, &hlen)) {
if (der_header2 (*crs, &tag, &len, &hlen)) {
crs->derptr = NULL;
crs->derlen = 0;
return -1;
Expand Down

0 comments on commit 3bf22b1

Please sign in to comment.