Fix regression introduced by "editing only change".

Signing and verification using a new key works again.
This commit is contained in:
Werner Koch 2011-01-24 12:02:35 +01:00
parent c3db7705c0
commit b3adbb576e
1 changed files with 1 additions and 1 deletions

View File

@ -1953,7 +1953,7 @@ parse_key (IOBUF inp, int pkttype, unsigned long pktlen,
else
{
/* Fill in public key parameters. */
if (algorithm == PUBKEY_ALGO_ECDSA && algorithm == PUBKEY_ALGO_ECDH)
if (algorithm == PUBKEY_ALGO_ECDSA || algorithm == PUBKEY_ALGO_ECDH)
{
/* FIXME: The code in this function ignores the errors. */
byte name_oid[256];