From 0e4fecdfe4e31200ce00353a633b289fd4724f15 Mon Sep 17 00:00:00 2001 From: Seth Hall Date: Wed, 5 Oct 2011 09:35:19 -0400 Subject: [PATCH] HTTP bug fix reported by Martin. --- scripts/base/protocols/http/main.bro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/base/protocols/http/main.bro b/scripts/base/protocols/http/main.bro index 0faefc4274..cbf122468c 100644 --- a/scripts/base/protocols/http/main.bro +++ b/scripts/base/protocols/http/main.bro @@ -266,7 +266,8 @@ event http_message_done(c: connection, is_orig: bool, stat: http_message_stat) & { # If the response was an informational 1xx, we're still expecting # the real response later, so we'll continue using the same record. - if ( ! code_in_range(c$http$status_code, 100, 199) ) + if ( c$http?$status_code && + ! code_in_range(c$http$status_code, 100, 199) ) { Log::write(HTTP::LOG, c$http); delete c$http_state$pending[c$http_state$current_response];