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
This commit is contained in:
csoler 2013-12-12 17:32:23 +00:00
parent 156db5fb7c
commit d8f42ddac7

View File

@ -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);