mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix a bunch of missing class member initializations
This commit is contained in:
parent
7374688d0d
commit
3b0e8ee6f1
16 changed files with 40 additions and 41 deletions
|
@ -23,13 +23,13 @@ protected:
|
|||
|
||||
struct Endpoint
|
||||
{
|
||||
u_char buffer[MAX_BUFFER_SIZE];
|
||||
int buffer_len;
|
||||
bool in_hdr;
|
||||
int tpflags;
|
||||
int pkt_length;
|
||||
int pkt_cnt;
|
||||
bool encountered_first_chunk;
|
||||
u_char buffer[MAX_BUFFER_SIZE] = {0};
|
||||
int buffer_len = 0;
|
||||
bool in_hdr = false;
|
||||
int tpflags = 0;
|
||||
int pkt_length = 0;
|
||||
int pkt_cnt = 0;
|
||||
bool encountered_first_chunk = false;
|
||||
};
|
||||
|
||||
bool ProcessData(int len, const u_char* data, bool orig);
|
||||
|
|
|
@ -14,7 +14,6 @@ namespace zeek::analyzer::file
|
|||
File_Analyzer::File_Analyzer(const char* name, Connection* conn)
|
||||
: TCP_ApplicationAnalyzer(name, conn)
|
||||
{
|
||||
buffer_len = 0;
|
||||
}
|
||||
|
||||
void File_Analyzer::DeliverStream(int len, const u_char* data, bool orig)
|
||||
|
|
|
@ -27,8 +27,8 @@ protected:
|
|||
void Identify();
|
||||
|
||||
static const int BUFFER_SIZE = 1024;
|
||||
char buffer[BUFFER_SIZE];
|
||||
int buffer_len;
|
||||
char buffer[BUFFER_SIZE] = {0};
|
||||
int buffer_len = 0;
|
||||
std::string file_id_orig;
|
||||
std::string file_id_resp;
|
||||
};
|
||||
|
|
|
@ -99,15 +99,15 @@ protected:
|
|||
uint32_t cred_flavor, stamp;
|
||||
uint32_t uid, gid;
|
||||
std::vector<int> auxgids;
|
||||
uint32_t verf_flavor;
|
||||
uint32_t verf_flavor = 0;
|
||||
u_char* call_buf; // copy of original call buffer
|
||||
std::string machinename;
|
||||
double start_time;
|
||||
double last_time;
|
||||
int rpc_len; // size of the full RPC call, incl. xid and msg_type
|
||||
int call_n; // size of call buf
|
||||
int header_len; // size of data before the arguments
|
||||
bool valid_call; // whether call was well-formed
|
||||
int rpc_len = 0; // size of the full RPC call, incl. xid and msg_type
|
||||
int call_n = 0; // size of call buf
|
||||
int header_len = 0; // size of data before the arguments
|
||||
bool valid_call = true; // whether call was well-formed
|
||||
|
||||
ValPtr v; // single (perhaps compound) value corresponding to call
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue