mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Adhere to Bro coding style guidelines.
This commit is contained in:
parent
ff8184242a
commit
7355a0089a
1 changed files with 12 additions and 12 deletions
|
@ -208,10 +208,10 @@ function lookup_cert_hash(uid: string, digest: string)
|
|||
}
|
||||
local version = split(fields[1], /=/)[2];
|
||||
if ( version != "1" )
|
||||
{
|
||||
{
|
||||
clear_waitlist(digest);
|
||||
return;
|
||||
}
|
||||
}
|
||||
local r = notary_cache[digest];
|
||||
r$first_seen = to_count(split(fields[2], /=/)[2]);
|
||||
r$last_seen = to_count(split(fields[3], /=/)[2]);
|
||||
|
@ -220,24 +220,24 @@ function lookup_cert_hash(uid: string, digest: string)
|
|||
|
||||
# Assign notary answer to all waiting records.
|
||||
if ( digest in waiting )
|
||||
{
|
||||
{
|
||||
for ( i in waiting[digest] )
|
||||
records[waiting[digest][i]]$notary = r;
|
||||
delete waiting[digest];
|
||||
}
|
||||
}
|
||||
|
||||
# Flush all records up to the record which still awaits an answer.
|
||||
local current: string;
|
||||
for ( unused_index in deque )
|
||||
{
|
||||
current = deque[tail];
|
||||
local info = records[current];
|
||||
if ( ! info?$notary )
|
||||
break;
|
||||
Log::write(SSL::LOG, info);
|
||||
delete deque[tail];
|
||||
delete records[current];
|
||||
++tail;
|
||||
current = deque[tail];
|
||||
local info = records[current];
|
||||
if ( ! info?$notary )
|
||||
break;
|
||||
Log::write(SSL::LOG, info);
|
||||
delete deque[tail];
|
||||
delete records[current];
|
||||
++tail;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue