aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/encode.c')
-rw-r--r--g10/encode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/g10/encode.c b/g10/encode.c
index 72201873f..0fb9c5cd8 100644
--- a/g10/encode.c
+++ b/g10/encode.c
@@ -214,9 +214,7 @@ encode_simple( const char *filename, int mode, int use_seskey )
}
if ( use_seskey ) {
- seskeylen = cipher_get_keylen( opt.s2k_cipher_algo ?
- opt.s2k_cipher_algo:
- opt.def_cipher_algo ) / 8;
+ seskeylen = cipher_get_keylen( opt.s2k_cipher_algo ) / 8;
encode_sesskey( cfx.dek, &dek, enckey );
m_free( cfx.dek ); cfx.dek = dek;
}