From d8f42ddac7d7e5675a75c7889e671a58e8ea8e9f Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 12 Dec 2013 17:32:23 +0000 Subject: [PATCH] fixed mistake introduced in 6937 that prevents correct writing of uncompressed packets git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6941 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- openpgpsdk/src/openpgpsdk/crypto.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openpgpsdk/src/openpgpsdk/crypto.c b/openpgpsdk/src/openpgpsdk/crypto.c index f8c0e9884..969e1efd5 100644 --- a/openpgpsdk/src/openpgpsdk/crypto.c +++ b/openpgpsdk/src/openpgpsdk/crypto.c @@ -264,8 +264,9 @@ extern ops_boolean_t ops_encrypt_stream(ops_create_info_t* cinfo, ops_writer_push_stream_encrypt_se_ip(cinfo, public_key); - if(! (compress && ops_writer_push_compressed(cinfo))) - return ops_false ; + if(compress) + if(!ops_writer_push_compressed(cinfo)) + return ops_false ; if (secret_key != NULL) ops_writer_push_signed(cinfo, OPS_SIG_BINARY, secret_key);