aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encr-data.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/encr-data.c')
-rw-r--r--g10/encr-data.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/encr-data.c b/g10/encr-data.c
index 5e1fdabed..87766e7aa 100644
--- a/g10/encr-data.c
+++ b/g10/encr-data.c
@@ -93,6 +93,10 @@ decrypt_data( void *procctx, PKT_encrypted *ed, DEK *dek )
log_error("key setup failed: %s\n", g10_errstr(rc) );
goto leave;
}
+ if (!ed->buf) {
+ log_error(_("problem handling encrypted packet\n"));
+ goto leave;
+ }
cipher_setiv( dfx.cipher_hd, NULL, 0 );