mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix a few other minor issues reported by Coverity
This commit is contained in:
parent
d22810e476
commit
64bca5ce4c
3 changed files with 2 additions and 4 deletions
|
@ -68,7 +68,6 @@ void RandTest::add(const void* buf, int bufl) {
|
||||||
scct2 = scct2 + oc;
|
scct2 = scct2 + oc;
|
||||||
scct3 = scct3 + (oc * oc);
|
scct3 = scct3 + (oc * oc);
|
||||||
scclast = oc;
|
scclast = oc;
|
||||||
oc <<= 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ public:
|
||||||
ScriptProfileStats& operator=(ScriptProfileStats&&) = default;
|
ScriptProfileStats& operator=(ScriptProfileStats&&) = default;
|
||||||
ScriptProfileStats& operator=(const ScriptProfileStats&) = default;
|
ScriptProfileStats& operator=(const ScriptProfileStats&) = default;
|
||||||
|
|
||||||
const auto Name() const { return name; }
|
const auto& Name() const { return name; }
|
||||||
|
|
||||||
// Number of instances included in an aggregate (like for "all BiFs").
|
// Number of instances included in an aggregate (like for "all BiFs").
|
||||||
// This is 1 for non-aggregates.
|
// This is 1 for non-aggregates.
|
||||||
|
|
|
@ -554,10 +554,9 @@ void Contents_RPC::DeliverStream(int len, const u_char* data, bool orig) {
|
||||||
// know yet how much we expect, so we set expected to
|
// know yet how much we expect, so we set expected to
|
||||||
// 0.
|
// 0.
|
||||||
msg_buf.Init(MAX_RPC_LEN, 0);
|
msg_buf.Init(MAX_RPC_LEN, 0);
|
||||||
last_frag = false;
|
|
||||||
state = WAIT_FOR_MARKER;
|
state = WAIT_FOR_MARKER;
|
||||||
start_time = run_state::network_time;
|
start_time = run_state::network_time;
|
||||||
// no break. fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case WAIT_FOR_MARKER: {
|
case WAIT_FOR_MARKER: {
|
||||||
bool got_marker = marker_buf.ConsumeChunk(data, len);
|
bool got_marker = marker_buf.ConsumeChunk(data, len);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue