From 940dc8adc034a6c6c38742f6bfd7d837a532d537 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 17 Nov 2015 16:00:16 +0100 Subject: cipher: Fix error handling. * cipher/cipher.c (_gcry_cipher_ctl): Fix error handling. -- Found using the Clang Static Analyzer. Signed-off-by: Justus Winter --- cipher/cipher.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.1