mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge remote-tracking branch 'origin/topic/justin/conn-remove-empty-string-allocation'
* origin/topic/justin/conn-remove-empty-string-allocation: Avoid allocation of 0 length strings on new conns
This commit is contained in:
commit
c5ebe299b1
3 changed files with 13 additions and 2 deletions
9
CHANGES
9
CHANGES
|
@ -1,3 +1,12 @@
|
||||||
|
|
||||||
|
4.2.0-dev.205 | 2021-09-23 12:24:06 +0200
|
||||||
|
|
||||||
|
* Avoid allocation of duplicate zero-length strings for new
|
||||||
|
connections. (Justin Azoff, Corelight)
|
||||||
|
|
||||||
|
* Sanity-check the method passed into ActiveHTTP. Reported by Pierre
|
||||||
|
Gaulon. (Robin Sommer, Corelight)
|
||||||
|
|
||||||
4.2.0-dev.203 | 2021-09-21 15:16:49 -0700
|
4.2.0-dev.203 | 2021-09-21 15:16:49 -0700
|
||||||
|
|
||||||
* Sanitize log files names before they go into system(). (Robin Sommer, Corelight)
|
* Sanitize log files names before they go into system(). (Robin Sommer, Corelight)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
4.2.0-dev.203
|
4.2.0-dev.205
|
||||||
|
|
|
@ -271,6 +271,8 @@ const RecordValPtr& Connection::GetVal()
|
||||||
|
|
||||||
conn_val->AssignTime(3, start_time); // ###
|
conn_val->AssignTime(3, start_time); // ###
|
||||||
conn_val->AssignInterval(4, last_time - start_time);
|
conn_val->AssignInterval(4, last_time - start_time);
|
||||||
|
|
||||||
|
if ( history.size() )
|
||||||
conn_val->Assign(6, history);
|
conn_val->Assign(6, history);
|
||||||
|
|
||||||
conn_val->SetOrigin(this);
|
conn_val->SetOrigin(this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue