Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Fix whitespace inconsistencies #trivial #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/session_cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ int session_cipher_encrypt(session_cipher *cipher,
uint32_t pre_key_id = 0;
uint32_t signed_pre_key_id;
ec_public_key *base_key;

if(session_state_unacknowledged_pre_key_message_has_pre_key_id(state)) {
has_pre_key_id = 1;
pre_key_id = session_state_unacknowledged_pre_key_message_get_pre_key_id(state);
Expand Down Expand Up @@ -347,8 +347,7 @@ int session_cipher_decrypt_signal_message(session_cipher *cipher,
goto complete;
}

result = signal_protocol_session_load_session(cipher->store, &record,
cipher->remote_address);
result = signal_protocol_session_load_session(cipher->store, &record, cipher->remote_address);
if(result < 0) {
goto complete;
}
Expand All @@ -364,8 +363,7 @@ int session_cipher_decrypt_signal_message(session_cipher *cipher,
goto complete;
}

result = signal_protocol_session_store_session(cipher->store,
cipher->remote_address, record);
result = signal_protocol_session_store_session(cipher->store, cipher->remote_address, record);

complete:
SIGNAL_UNREF(record);
Expand Down