summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2015-11-17 16:00:16 +0100
committerJustus Winter <justus@g10code.com>2015-11-17 16:00:16 +0100
commit6af4a773d42d06b503250400221a02e4d43cefed (patch)
tree757d84460a2f05868b94931b921b2199c2e5ccd5
parent0e395944b70c7a92a6437f6bcc14f287c19ce9de (diff)
downloadlibgcrypt-justus/fix-error-handling.tar.gz
cipher: Fix error handling.justus/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>
-rw-r--r--cipher/cipher.c1
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;