mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
lint fixes: ensuring functions return values, robustness to nil Val's
This commit is contained in:
parent
e21c0f1115
commit
5a8ba8c3e5
4 changed files with 8 additions and 2 deletions
|
@ -217,7 +217,7 @@ function set_current_threshold(c: connection, ttype: threshold_type, is_orig: bo
|
|||
return set_current_conn_packets_threshold(c$id, t, T);
|
||||
else if ( ttype == PACKETS && ! is_orig )
|
||||
return set_current_conn_packets_threshold(c$id, t, F);
|
||||
else if ( ttype == DURATION )
|
||||
else # ttype == DURATION
|
||||
return set_current_conn_duration_threshold(c$id, td);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue