mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fixing another "field missing" error reported by Martin.
This commit is contained in:
parent
b5aa88dae6
commit
8627b87b3e
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,8 @@ event bro_init() &priority=5
|
|||
event x509_certificate(c: connection, cert: X509, is_server: bool, chain_idx: count, chain_len: count, der_cert: string) &priority=3
|
||||
{
|
||||
# Make sure this is the server cert and we have a hash for it.
|
||||
if ( chain_idx == 0 && ! c$ssl?$cert_hash ) return;
|
||||
if ( chain_idx != 0 || ! c$ssl?$cert_hash )
|
||||
return;
|
||||
|
||||
local host = c$id$resp_h;
|
||||
if ( [host, c$ssl$cert_hash] !in certs && addr_matches_host(host, cert_tracking) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue