]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #196 in SNORT/snort3 from crc/parse to master
authorRuss Combs (rucombs) <rucombs@cisco.com>
Mon, 4 Jan 2016 17:59:46 +0000 (12:59 -0500)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Mon, 4 Jan 2016 17:59:46 +0000 (12:59 -0500)
Squashed commit of the following:

commit 5b46b26b5f6d1801a2cdf0bc10f529bf2253a538
Author: Russ Combs <rucombs@cisco.com>
Date:   Mon Jan 4 12:38:51 2016 -0500

    remove double unescape

src/parser/parse_utils.cc

index 3eedfdd81b5e67a460f267707017aa2a0e3bb9ce..c00f0d53a5c5e249c4c322307298835ae46443f5 100644 (file)
@@ -71,10 +71,7 @@ bool parse_byte_code(const char* in, bool& negate, std::string& out)
                 ok = false;
             break;
         case 2:
-            if ( c == '\\' )
-                state = 3;
-
-            else if ( c == '|' )
+            if ( c == '|' )
             {
                 hex = 0;
                 nx = 0;
@@ -85,10 +82,6 @@ bool parse_byte_code(const char* in, bool& negate, std::string& out)
             else
                 out += c;
             break;
-        case 3:
-            out += c;
-            state = 2;
-            break;
         case 4:
             if ( c == '|' )
             {