aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/cipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/cipher.c')
-rw-r--r--cipher/cipher.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c
index 0a1ad604f..1a7a65845 100644
--- a/cipher/cipher.c
+++ b/cipher/cipher.c
@@ -26,7 +26,6 @@
#include <assert.h>
#include "g10lib.h"
-#include "util.h"
#include "cipher.h"
#include "des.h"
#include "blowfish.h"
@@ -418,10 +417,9 @@ gcry_cipher_close( GCRY_CIPHER_HD h )
{
if( !h )
return;
- if( h->magic != CTX_MAGIC_SECURE && h->magic != CTX_MAGIC_NORMAL ) {
- fatal_invalid_arg("gcry_cipher_close: already closed/invalid handle");
- return;
- }
+ if( h->magic != CTX_MAGIC_SECURE && h->magic != CTX_MAGIC_NORMAL )
+ g10_fatal_error(GCRYERR_INTERNAL,
+ "gcry_cipher_close: already closed/invalid handle");
h->magic = 0;
g10_free(h);
}