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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 14116f062..e2a300d2c 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -2352,7 +2352,8 @@ parse_signature (IOBUF inp, int pkttype, unsigned long pktlen,
for (i = 0; i < ndata; i++)
{
n = pktlen;
- if (sig->pubkey_algo == PUBKEY_ALGO_EDDSA)
+ if (sig->pubkey_algo == PUBKEY_ALGO_ECDSA
+ || sig->pubkey_algo == PUBKEY_ALGO_EDDSA)
sig->data[i] = sos_read (inp, &n, 0);
else
sig->data[i] = mpi_read (inp, &n, 0);