]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
applayer: allow rust parsers to have only one probe
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 13 Mar 2020 08:37:56 +0000 (09:37 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 3 Aug 2020 11:59:24 +0000 (13:59 +0200)
src/app-layer-register.c

index e999c67ef3c4ef46586126e353d3f867583ad5ea..8da006f0f9540ba25e98714d90257c8021221166 100644 (file)
@@ -54,7 +54,7 @@ AppProto AppLayerRegisterProtocolDetection(const struct AppLayerParser *p, int e
 
     AppLayerProtoDetectRegisterProtocol(alproto, p->name);
 
-    if (p->ProbeTS == NULL || p->ProbeTC == NULL) {
+    if (p->ProbeTS == NULL && p->ProbeTC == NULL) {
         return alproto;
     }