mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix a small bug with scriptland data types that led to a crash.
This commit is contained in:
parent
c63bd17b5f
commit
78d9e38167
2 changed files with 3 additions and 6 deletions
|
@ -2552,8 +2552,6 @@ export {
|
|||
};
|
||||
|
||||
type SMB1::NegotiateResponseCore: record {
|
||||
## Count of parameter words (should be 1)
|
||||
word_count : count;
|
||||
## Index of selected dialect
|
||||
dialect_index : count;
|
||||
};
|
||||
|
|
|
@ -74,12 +74,11 @@ refine connection SMB_Conn += {
|
|||
{
|
||||
case 0x01:
|
||||
core = new RecordVal(BifType::Record::SMB1::NegotiateResponseCore);
|
||||
core->Assign(0, new Val(${val.word_count}, TYPE_COUNT));
|
||||
core->Assign(1, new Val(${val.dialect_index}, TYPE_COUNT));
|
||||
core->Assign(2, new Val(${val.core.byte_count}, TYPE_COUNT));
|
||||
core->Assign(0, new Val(${val.dialect_index}, TYPE_COUNT));
|
||||
|
||||
response->Assign(0, core);
|
||||
break;
|
||||
|
||||
case 0x0d:
|
||||
security = new RecordVal(BifType::Record::SMB1::NegotiateResponseSecurity);
|
||||
security->Assign(0, new Val(${val.lanman.security_user_level}, TYPE_BOOL));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue