mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
dce-rpc: Do not repeatedly register removal hooks
...once should be enough.
This commit is contained in:
parent
ccfc68fccd
commit
1c9038f38d
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,6 @@ function set_state(c: connection, state_x: BackingState)
|
|||
c$dce_rpc$endpoint = uuid_endpoint_map[c$dce_rpc_state$uuid];
|
||||
if ( c$dce_rpc_state?$named_pipe )
|
||||
c$dce_rpc$named_pipe = c$dce_rpc_state$named_pipe;
|
||||
|
||||
Conn::register_removal_hook(c, finalize_dce_rpc);
|
||||
}
|
||||
|
||||
function set_session(c: connection, fid: count)
|
||||
|
@ -97,7 +95,9 @@ function set_session(c: connection, fid: count)
|
|||
if ( ! c?$dce_rpc_backing )
|
||||
{
|
||||
c$dce_rpc_backing = table();
|
||||
Conn::register_removal_hook(c, finalize_dce_rpc);
|
||||
}
|
||||
|
||||
if ( fid !in c$dce_rpc_backing )
|
||||
{
|
||||
local info = Info($ts=network_time(),$id=c$id,$uid=c$uid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue