mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/fix-netbios-decode-bifs'
* origin/topic/jsiwek/fix-netbios-decode-bifs: Fixes to `decode_netbios_name` and `decode_netbios_name_type` BIFs
This commit is contained in:
commit
ad67d810be
7 changed files with 114 additions and 34 deletions
|
@ -434,7 +434,11 @@ event dns_request(c: connection, msg: dns_msg, query: string, qtype: count, qcla
|
|||
# worked into the query/response in some fashion.
|
||||
if ( c$id$resp_p == 137/udp )
|
||||
{
|
||||
query = decode_netbios_name(query);
|
||||
local decoded_query = decode_netbios_name(query);
|
||||
|
||||
if ( |decoded_query| != 0 )
|
||||
query = decoded_query;
|
||||
|
||||
if ( c$dns$qtype_name == "SRV" )
|
||||
{
|
||||
# The SRV RFC used the ID used for NetBios Status RRs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue