aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r--g10/parse-packet.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 54ce04abb..041db2cae 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -2591,11 +2591,7 @@ parse_key (IOBUF inp, int pkttype, unsigned long pktlen,
else
{
unsigned int n = pktlen;
- if ( (algorithm == PUBKEY_ALGO_EDDSA && (i == 1))
- || (algorithm == PUBKEY_ALGO_ECDH && (i == 1)))
- pk->pkey[i] = sos_read (inp, &n, 0);
- else
- pk->pkey[i] = mpi_read (inp, &n, 0);
+ pk->pkey[i] = mpi_read (inp, &n, 0);
pktlen -= n;
if (!pk->pkey[i])
err = gpg_error (GPG_ERR_INV_PACKET);