diff options
author | Justus Winter <justus@g10code.com> | 2015-11-17 16:00:16 +0100 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2015-11-18 17:34:56 +0100 |
commit | 940dc8adc034a6c6c38742f6bfd7d837a532d537 (patch) | |
tree | d7b7af947ee35c7862a19e81cdda5a6b32dc324e /cipher/cipher.c | |
parent | 6571a64331839d7d952292163afbf34c8bef62e0 (diff) | |
download | libgcrypt-940dc8adc034a6c6c38742f6bfd7d837a532d537.tar.gz |
cipher: Fix error handling.
* cipher/cipher.c (_gcry_cipher_ctl): Fix error handling.
--
Found using the Clang Static Analyzer.
Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'cipher/cipher.c')
-rw-r--r-- | cipher/cipher.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c index ab9f0dc5..f163bde2 100644 --- a/cipher/cipher.c +++ b/cipher/cipher.c @@ -1359,6 +1359,7 @@ _gcry_cipher_ctl (gcry_cipher_hd_t h, int cmd, void *buffer, size_t buflen) (&h->context.c, GCRYCTL_SET_SBOX, buffer, buflen); else rc = GPG_ERR_NOT_SUPPORTED; + break; default: rc = GPG_ERR_INV_OP; |