]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer-expectation: remove unused parameter
authorEric Leblond <eric@regit.org>
Tue, 10 Dec 2019 21:15:14 +0000 (22:15 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 3 Apr 2020 08:07:48 +0000 (10:07 +0200)
src/app-layer-expectation.c

index f6d91a3bd3b97bafda704dc12a23383aa8a60d63..dec089bafc01f45f615dd13de25b0a456b7525d1 100644 (file)
@@ -144,7 +144,7 @@ static inline int GetFlowAddresses(Flow *f, Address *ip_src, Address *ip_dst)
     return 0;
 }
 
-static Expectation *AppLayerExpectationLookup(Flow *f, int direction, IPPair **ipp)
+static Expectation *AppLayerExpectationLookup(Flow *f, IPPair **ipp)
 {
     Address ip_src, ip_dst;
     if (GetFlowAddresses(f, &ip_src, &ip_dst) == -1)
@@ -282,7 +282,7 @@ AppProto AppLayerExpectationHandle(Flow *f, int direction)
     }
 
     /* Call will take reference of the ip pair in 'ipp' */
-    Expectation *exp = AppLayerExpectationLookup(f, direction, &ipp);
+    Expectation *exp = AppLayerExpectationLookup(f, &ipp);
     if (exp == NULL)
         goto out;