Skip to content
Snippets Groups Projects
Commit 080ebce5 authored by Niels Möller's avatar Niels Möller
Browse files

* sexp.c (sexp_iterator_assoc): Advance the iterator to the

element after a matching tag, before recording it.

Rev: src/nettle/sexp.c:1.8
parent 032a557e
No related branches found
No related tags found
No related merge requests found
...@@ -266,12 +266,16 @@ sexp_iterator_assoc(struct sexp_iterator *iterator, ...@@ -266,12 +266,16 @@ sexp_iterator_assoc(struct sexp_iterator *iterator,
/* We don't allow duplicates */ /* We don't allow duplicates */
return 0; return 0;
/* Advance to point to value */
if (!sexp_iterator_next(iterator))
return 0;
found[i] = 1; found[i] = 1;
nfound++; nfound++;
/* Record this position. */ /* Record this position. */
values[i] = *iterator; values[i] = *iterator;
break; break;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment