Fix a small bug with scriptland data types that led to a crash.

This commit is contained in:
Seth Hall 2016-04-04 15:07:01 -04:00
parent c63bd17b5f
commit 78d9e38167
2 changed files with 3 additions and 6 deletions

View file

@ -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;
};

View file

@ -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));