mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-24 18:37:05 +00:00
Check timestamp_diff return code correctly
This commit is contained in:
parent
2a7b0f664f
commit
f24eafd8b4
1 changed files with 2 additions and 1 deletions
|
@ -170,7 +170,8 @@ int clean_old_conn() {
|
|||
while(conn) {
|
||||
tcpconn = &conn->conn;
|
||||
conn=conn->next;
|
||||
timestamp_diff(&last_packet_seen_time, &tcpconn->last_seen_time, &dt);
|
||||
if(timestamp_diff(&last_packet_seen_time, &tcpconn->last_seen_time, &dt))
|
||||
continue;
|
||||
if(dt.tv_sec > conn_ttl) {
|
||||
i++;
|
||||
tcp_destroy_conn(tcpconn);
|
||||
|
|
Loading…
Reference in a new issue