diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 74bcb587c1..bebc08a4e8 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -414,7 +414,7 @@ static int spawn_mp3(struct mohclass *class) files = 1; } else { dir = opendir(class->dir); - if (!dir && !strncasecmp(class->dir, "http://", 7)) { + if (!dir && strncasecmp(class->dir, "http://", 7)) { ast_log(LOG_WARNING, "%s is not a valid directory\n", class->dir); return -1; }