Merge branch '555-smb3-negotiate-context-fix' of https://github.com/mad/zeek

- Fixed the context list padding to only be used for dialect 0x0311.
  The new test case includes an example where parsing the optional
  padding would fail for another dialect.

* '555-smb3-negotiate-context-fix' of https://github.com/mad/zeek:
  Fix for smb3 negotiate context
This commit is contained in:
Jon Siwek 2019-08-27 10:04:43 -07:00
commit 289a1e2e8e
6 changed files with 17 additions and 3 deletions

View file

@ -0,0 +1,9 @@
# @TEST-EXEC: zeek -b -r $TRACES/smb/smb3_negotiate_context.pcap %INPUT
# @TEST-EXEC: btest-diff .stdout
@load base/protocols/smb
event smb2_negotiate_response(c: connection , hdr: SMB2::Header , response: SMB2::NegotiateResponse )
{
print response;
}