diff --git a/src/interceptor/logging-interceptor-substr.c b/src/interceptor/logging-interceptor-substr.c index b6c2e13..912bafc 100644 --- a/src/interceptor/logging-interceptor-substr.c +++ b/src/interceptor/logging-interceptor-substr.c @@ -66,6 +66,7 @@ static bool _disposeSubstring(log_Interceptor *interceptor, if (level <= interceptor->level) return true; return false; + } while (keyword != NULL && level <= interceptor->level) { if (kmp_search(keyword->key, (char *)message))