aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/cipher.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-11-19 16:11:37 +0000
committerWerner Koch <[email protected]>1999-11-19 16:11:37 +0000
commit2694bceb45f71b7808aec66f30d8ee720a92eb67 (patch)
tree358ee56c220c853334ec604d653c3483be72ff2f /cipher/cipher.c
parentSee ChangeLog: Mon Nov 15 21:36:02 CET 1999 Werner Koch (diff)
downloadgnupg-2694bceb45f71b7808aec66f30d8ee720a92eb67.tar.gz
gnupg-2694bceb45f71b7808aec66f30d8ee720a92eb67.zip
See ChangeLog: Fri Nov 19 17:15:20 CET 1999 Werner Koch
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);
}