]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #576 in SNORT/snort3 from ips_options_window to master
authorRuss Combs (rucombs) <rucombs@cisco.com>
Tue, 2 Aug 2016 17:31:50 +0000 (13:31 -0400)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Tue, 2 Aug 2016 17:31:50 +0000 (13:31 -0400)
Squashed commit of the following:

commit dabe4fb2cd7e4409a0cdefbd6f872169ef88f126
Author: alewis <albert.l.lewis@gmail.com>
Date:   Tue Aug 2 13:11:17 2016 -0400

    fixed endian problem with ips option window test

src/ips_options/ips_window.cc

index 21cd06c2a34158bf69cacdd15eeb84d52b896eb4..1b981cbceaaca4965abdd0ed0603431b4c4f4b22 100644 (file)
@@ -87,7 +87,7 @@ int TcpWinOption::eval(Cursor&, Packet* p)
     if (!p->ptrs.tcph)
         return DETECTION_OPTION_NO_MATCH;
 
-    if ( config.eval(p->ptrs.tcph->th_win) )
+    if ( config.eval(p->ptrs.tcph->win()) )
         return DETECTION_OPTION_MATCH;
 
     return DETECTION_OPTION_NO_MATCH;