mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
minor change to deal with empty request
This commit is contained in:
parent
4e8d15d8d1
commit
b4fce308f0
1 changed files with 5 additions and 5 deletions
|
@ -212,15 +212,15 @@ function enq_request(http: HTTP::Info, req: OCSP::Request, req_id: string, req_t
|
||||||
Queue::put(http$ocsp_requests[cert_id], req_rec);
|
Queue::put(http$ocsp_requests[cert_id], req_rec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if ( req?$version )
|
||||||
{
|
{
|
||||||
# no request content? this is weird but log it anyway
|
# it's ocsp request but has no request content
|
||||||
|
# this is weird but log it anyway
|
||||||
local req_rec_empty: OCSP::Info_req = [$ts = req_ts,
|
local req_rec_empty: OCSP::Info_req = [$ts = req_ts,
|
||||||
$cid = http$id,
|
$cid = http$id,
|
||||||
$cuid = http$uid,
|
$cuid = http$uid,
|
||||||
$id = req_id];
|
$id = req_id,
|
||||||
if (req?$version)
|
$version = req$version];
|
||||||
req_rec_empty$version = req$version;
|
|
||||||
if (req?$requestorName)
|
if (req?$requestorName)
|
||||||
req_rec_empty$requestorName = req$requestorName;
|
req_rec_empty$requestorName = req$requestorName;
|
||||||
update_http_info(http, req_rec_empty);
|
update_http_info(http, req_rec_empty);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue