silence debugging messages from sec-mod when not in debug

This commit is contained in:
Nikos Mavrogiannopoulos
2015-01-18 17:34:59 +01:00
parent 5179a064ab
commit c954e45e53
4 changed files with 12 additions and 10 deletions

View File

@@ -617,7 +617,7 @@ static void ctl_handle_commands(main_server_st * s)
goto cleanup;
}
ret = check_upeer_id("ctl", cfd, 0, 0, NULL);
ret = check_upeer_id("ctl", s->config->debug, cfd, 0, 0, NULL);
if (ret < 0) {
mslog(s, NULL, LOG_ERR, "ctl: unauthorized connection");
goto cleanup;