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
Branches
No related tags found
No related merge requests found
...@@ -266,6 +266,10 @@ sexp_iterator_assoc(struct sexp_iterator *iterator, ...@@ -266,6 +266,10 @@ 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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment