mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 23:19:29 -05:00
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:
parent
156db5fb7c
commit
d8f42ddac7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user