aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/encode.c')
-rw-r--r--g10/encode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/encode.c b/g10/encode.c
index e1ef5b2ae..a0048379f 100644
--- a/g10/encode.c
+++ b/g10/encode.c
@@ -78,13 +78,13 @@ pk_encrypt( int algo, MPI *resarr, MPI data, MPI *pkey )
else { /* add better error handling or make gnupg use S-Exp directly */
GCRY_SEXP list = gcry_sexp_find_token( s_ciph, "a" , 0 );
assert( list );
- resarr[0] = gcry_sexp_cdr_mpi( list, 0 );
+ resarr[0] = gcry_sexp_nth_mpi( list, 1, 0 );
assert( resarr[0] );
gcry_sexp_release ( list );
list = gcry_sexp_find_token( s_ciph, "b" , 0 );
assert( list );
- resarr[1] = gcry_sexp_cdr_mpi( list, 0 );
+ resarr[1] = gcry_sexp_nth_mpi( list, 1, 0 );
assert( resarr[1] );
gcry_sexp_release ( list );
}