mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
The remaining nulls
This commit is contained in:
parent
41c3256faa
commit
0a47588d0b
80 changed files with 565 additions and 565 deletions
|
@ -55,7 +55,7 @@ int* Base64Converter::InitBase64Table(const string& alphabet)
|
|||
if ( alphabet == default_alphabet && default_table_initialized )
|
||||
return default_base64_table;
|
||||
|
||||
int* base64_table = 0;
|
||||
int* base64_table = nullptr;
|
||||
|
||||
if ( alphabet == default_alphabet )
|
||||
{
|
||||
|
@ -98,7 +98,7 @@ Base64Converter::Base64Converter(Connection* arg_conn, const string& arg_alphabe
|
|||
alphabet = default_alphabet;
|
||||
}
|
||||
|
||||
base64_table = 0;
|
||||
base64_table = nullptr;
|
||||
base64_group_next = 0;
|
||||
base64_padding = base64_after_padding = 0;
|
||||
errored = 0;
|
||||
|
@ -234,7 +234,7 @@ BroString* decode_base64(const BroString* s, const BroString* a, Connection* con
|
|||
{
|
||||
reporter->Error("base64 decoding alphabet is not 64 characters: %s",
|
||||
a->CheckString());
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int buf_len = int((s->Len() + 3) / 4) * 3 + 1;
|
||||
|
@ -259,7 +259,7 @@ BroString* decode_base64(const BroString* s, const BroString* a, Connection* con
|
|||
|
||||
err:
|
||||
delete [] rbuf;
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
BroString* encode_base64(const BroString* s, const BroString* a, Connection* conn)
|
||||
|
@ -268,10 +268,10 @@ BroString* encode_base64(const BroString* s, const BroString* a, Connection* con
|
|||
{
|
||||
reporter->Error("base64 alphabet is not 64 characters: %s",
|
||||
a->CheckString());
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
char* outbuf = 0;
|
||||
char* outbuf = nullptr;
|
||||
int outlen = 0;
|
||||
Base64Converter enc(conn, a ? a->CheckString() : "");
|
||||
enc.Encode(s->Len(), (const unsigned char*) s->Bytes(), &outlen, &outbuf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue