mirror of
https://github.com/TokTok/c-toxcore
synced 2026-10-23 15:12:24 +00:00
Comment out useless TODO'd if block.
The condition is a potential use after free, because `connection_kill` before it will delete the `conn` that is dereferenced.
This commit is contained in:
1 file changed
+4
-1
@@ -2669,12 +2669,15 @@ static void kill_timedout(Net_Crypto *c)
|
||||
continue;
|
||||
|
||||
connection_kill(c, i);
|
||||
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
if (conn->status == CRYPTO_CONN_ESTABLISHED) {
|
||||
//TODO: add a timeout here?
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user