diff options
author | Christian Pointner <equinox@anytun.org> | 2014-02-10 03:43:53 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-02-10 03:43:53 +0000 |
commit | a6ba8d2faa437cfa171834cbcbe81317750b27b7 (patch) | |
tree | e6756066af57c2ee01f7db2fb9d8c6ad361f052b /src/cipher.c | |
parent | moved less invasive check for mux value to the top (diff) |
clang --analyze yielded bugs
Diffstat (limited to 'src/cipher.c')
-rw-r--r-- | src/cipher.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cipher.c b/src/cipher.c index 5040686..d6eae57 100644 --- a/src/cipher.c +++ b/src/cipher.c @@ -241,10 +241,8 @@ void cipher_aesctr_close(cipher_t* c) if(c->params_) { #ifndef USE_SSL_CRYPTO cipher_aesctr_param_t* params = c->params_; - if(params->handle_) - gcry_cipher_close(params->handle_); + gcry_cipher_close(params->handle_); #endif - free(c->params_); } } |