diff --git a/src/app-layer-register.c b/src/app-layer-register.c index dcf82aa8b7..fe2e80bc74 100644 --- a/src/app-layer-register.c +++ b/src/app-layer-register.c @@ -55,6 +55,7 @@ AppProto AppLayerRegisterProtocolDetection(const struct AppLayerParser *p, int e AppLayerProtoDetectRegisterProtocol(alproto, p->name); if (p->ProbeTS == NULL && p->ProbeTC == NULL) { + BUG_ON(p->default_port != NULL); return alproto; }