From b4fce308f0bef06c73152fd192a00d961a0351af Mon Sep 17 00:00:00 2001 From: Liang Zhu Date: Sat, 18 Jul 2015 19:36:47 -0700 Subject: [PATCH] minor change to deal with empty request --- scripts/base/files/ocsp/main.bro | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/base/files/ocsp/main.bro b/scripts/base/files/ocsp/main.bro index 80fd356f29..5c01951a66 100644 --- a/scripts/base/files/ocsp/main.bro +++ b/scripts/base/files/ocsp/main.bro @@ -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); } } - 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, $cid = http$id, $cuid = http$uid, - $id = req_id]; - if (req?$version) - req_rec_empty$version = req$version; + $id = req_id, + $version = req$version]; if (req?$requestorName) req_rec_empty$requestorName = req$requestorName; update_http_info(http, req_rec_empty);