mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Minor review nits
This commit is contained in:
parent
43e77a3338
commit
fd67206865
7 changed files with 18 additions and 20 deletions
|
@ -60,7 +60,7 @@ ConnKey::ConnKey(Val* v) {
|
|||
|
||||
int orig_h, orig_p; // indices into record's value list
|
||||
int resp_h, resp_p;
|
||||
uint8_t proto;
|
||||
int proto;
|
||||
|
||||
if ( vr == id::conn_id ) {
|
||||
orig_h = 0;
|
||||
|
@ -77,7 +77,7 @@ ConnKey::ConnKey(Val* v) {
|
|||
resp_p = vr->FieldOffset("resp_p");
|
||||
proto = vr->FieldOffset("proto");
|
||||
|
||||
if ( orig_h < 0 || resp_h < 0 || orig_p < 0 || resp_p < 0 ) {
|
||||
if ( orig_h < 0 || resp_h < 0 || orig_p < 0 || resp_p < 0 || proto < 0 ) {
|
||||
valid = false;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue