lint fixes: ensuring functions return values, robustness to nil Val's

This commit is contained in:
Vern Paxson 2021-03-18 08:21:19 -07:00
parent e21c0f1115
commit 5a8ba8c3e5
4 changed files with 8 additions and 2 deletions

View file

@ -33,7 +33,7 @@ function id_matches_direction(id: conn_id, d: Direction): bool
return (o_local && !r_local) || (!o_local && r_local);
else if ( d == OUTBOUND )
return o_local && !r_local;
else if ( d == INBOUND )
else # d == INBOUND
return !o_local && r_local;
}