Skip to content

Commit

Permalink
detect: fix multi-tenant loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed Oct 24, 2016
1 parent 7e54ee7 commit 397c541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/detect-engine-loader.c
Expand Up @@ -150,7 +150,7 @@ void TmThreadWakeupDetectLoaderThreads()
for (i = 0; i < TVT_MAX; i++) {
tv = tv_root[i];
while (tv != NULL) {
if (strcmp(tv->name,"DetectLoader") == 0) {
if (strncmp(tv->name,"DL#",3) == 0) {
BUG_ON(tv->ctrl_cond == NULL);
pthread_cond_broadcast(tv->ctrl_cond);
}
Expand All @@ -174,7 +174,7 @@ void TmThreadContinueDetectLoaderThreads()
for (i = 0; i < TVT_MAX; i++) {
tv = tv_root[i];
while (tv != NULL) {
if (strcmp(tv->name,"DetectLoader") == 0)
if (strncmp(tv->name,"DL#",3) == 0)
TmThreadContinue(tv);

tv = tv->next;
Expand Down

0 comments on commit 397c541

Please sign in to comment.