From 24be03f7c53923b8b926f9f37e83ccdbd06ee900 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Thu, 31 Mar 2022 19:31:21 -0700 Subject: [PATCH] fix for ill-formed (complex) &default function --- scripts/base/protocols/smb/consts.zeek | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/base/protocols/smb/consts.zeek b/scripts/base/protocols/smb/consts.zeek index 9b68419baa..42ba43639e 100644 --- a/scripts/base/protocols/smb/consts.zeek +++ b/scripts/base/protocols/smb/consts.zeek @@ -112,7 +112,7 @@ export { const rpc_sub_cmds: table[string] of rpc_cmd_table = { ["4b324fc8-1670-01d3-1278-5a47bf6ee188"] = srv_cmds, ["6bffd098-a112-3610-9833-46c3f87e345a"] = wksta_cmds, - } &redef &default=function(i: string):rpc_cmd_table { return table() &default=function(j: string):string { return fmt("unknown-uuid-%s", j); }; }; + } &redef &default=function(i: string):rpc_cmd_table { return table() &default=function(j: count):string { return fmt("unknown-uuid-%d", j); }; }; }