mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Slight changes to software detection framework.
- This probably won't fix anything, but I'm checking for size of tables a bit more consistently now.
This commit is contained in:
parent
0778d5e8d5
commit
47c6afac8e
1 changed files with 3 additions and 3 deletions
|
@ -276,11 +276,11 @@ function parse(unparsed_version: string,
|
|||
}
|
||||
}
|
||||
|
||||
if ( |version_numbers| >= 3 && version_numbers[3] != "" )
|
||||
if ( 3 in version_numbers && version_numbers[3] != "" )
|
||||
v$minor2 = to_count(version_numbers[3]);
|
||||
if ( |version_numbers| >= 2 && version_numbers[2] != "" )
|
||||
if ( 2 in version_numbers && version_numbers[2] != "" )
|
||||
v$minor = to_count(version_numbers[2]);
|
||||
if ( |version_numbers| >= 1 && version_numbers[1] != "" )
|
||||
if ( 1 in version_numbers && version_numbers[1] != "" )
|
||||
v$major = to_count(version_numbers[1]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue