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

* sexp2rsa.c (get_value): No need to call sexp_iterator_next

anymore.

Rev: src/nettle/sexp2rsa.c:1.6
parent 080ebce5
No related branches found
No related tags found
No related merge requests found
...@@ -38,8 +38,7 @@ ...@@ -38,8 +38,7 @@
static int static int
get_value(mpz_t x, struct sexp_iterator *i) get_value(mpz_t x, struct sexp_iterator *i)
{ {
if (sexp_iterator_next(i) if (i->type == SEXP_ATOM
&& i->type == SEXP_ATOM
&& !i->display) && !i->display)
{ {
nettle_mpz_set_str_256(x, i->atom_length, i->atom); nettle_mpz_set_str_256(x, i->atom_length, i->atom);
......
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