Fixed possible bug with TCP nonce not getting incremented.

This commit is contained in:
irungentoo 2014-07-16 20:39:58 -04:00
parent 1e69af8cff
commit bcfb1261ac
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
2 changed files with 4 additions and 4 deletions

View File

@ -231,10 +231,10 @@ static int write_packet_TCP_secure_connection(TCP_Client_Connection *con, const
if (len <= 0) {
len = 0;
} else {
increment_nonce(con->sent_nonce);
}
increment_nonce(con->sent_nonce);
if (len == sizeof(packet)) {
return 1;
}

View File

@ -411,10 +411,10 @@ static int write_packet_TCP_secure_connection(TCP_Secure_Connection *con, const
if (len <= 0) {
len = 0;
} else {
increment_nonce(con->sent_nonce);
}
increment_nonce(con->sent_nonce);
if (len == sizeof(packet)) {
return 1;
}