Fix narrowing conversion compiler error in SMB error-response logic

This commit is contained in:
Jon Siwek 2020-12-07 16:52:52 -08:00
parent 0b8535b879
commit 07c4662dc4
3 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,8 @@
3.3.0-dev.630 | 2020-12-07 16:52:52 -0800
* Fix narrowing conversion compiler error in SMB error-response logic (Jon Siwek, Corelight)
3.3.0-dev.629 | 2020-12-07 16:03:25 -0800 3.3.0-dev.629 | 2020-12-07 16:03:25 -0800
* Add tests for new SMB3 multichannel support (Vlad Grigorescu) * Add tests for new SMB3 multichannel support (Vlad Grigorescu)

View file

@ -1 +1 @@
3.3.0-dev.629 3.3.0-dev.630

View file

@ -282,7 +282,9 @@ refine connection SMB_Conn += {
// Non-zero USUALLY means an error, except for the specific cases detailed in // Non-zero USUALLY means an error, except for the specific cases detailed in
// [MS-SMB2] 3.3.4.4 Sending an Error Response // [MS-SMB2] 3.3.4.4 Sending an Error Response
switch ( ${header.status} ) { auto status = static_cast<SMB_Status>(${header.status});
switch ( status ) {
case 0: case 0:
// No error. // No error.
return false; return false;