Home GnuPG

cipher: restore weak-key error-code after mode specific setkey

Description

cipher: restore weak-key error-code after mode specific setkey

* cipher/cipher.c (cipher_setkey): Restore weak-key error-code
in case mode specific setkey returned success for the return code.
  • GnuPG-bug-id: T6451
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>