From 0e49b9ef98c69f81ee623e7bed808b7cc8619104 Mon Sep 17 00:00:00 2001 From: Seth Hall Date: Mon, 20 Jun 2016 16:23:49 -0400 Subject: [PATCH] Fix a small poor implementation in SMB string handling. --- src/analyzer/protocol/smb/smb-strings.pac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyzer/protocol/smb/smb-strings.pac b/src/analyzer/protocol/smb/smb-strings.pac index f72225752b..2f5ecdf1a4 100644 --- a/src/analyzer/protocol/smb/smb-strings.pac +++ b/src/analyzer/protocol/smb/smb-strings.pac @@ -59,7 +59,7 @@ function extract_string(s: SMB_string) : StringVal const char* sp; bool ascii = true; - if ( s->val_case_index() == 0 ) + if ( s->unicode() == 0 ) { length = s->a()->size(); char *buf = new char[length];