diff options
Diffstat (limited to 'g10/cipher.c')
-rw-r--r-- | g10/cipher.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/g10/cipher.c b/g10/cipher.c index c1cf226a8..6f89e6bc3 100644 --- a/g10/cipher.c +++ b/g10/cipher.c @@ -64,10 +64,9 @@ write_header( cipher_filter_context_t *cfx, IOBUF a ) if (opt.force_mdc) use_mdc = 1; - if( opt.rfc2440 || opt.rfc1991 ) + if( opt.rfc2440 || opt.rfc1991 || opt.disable_mdc ) use_mdc = 0; /* override - rfc2440 does not know about MDC */ - memset( &ed, 0, sizeof ed ); ed.len = cfx->datalen; ed.extralen = blocksize+2; |