applayer: allow rust parsers to have only one probe

pull/5265/head
Philippe Antoine 5 years ago committed by Victor Julien
parent 4e1a41a17d
commit 6343920dfc

@ -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;
}

Loading…
Cancel
Save