* Disable it.
*/
if (argc == 0) {
- talloc_free(debug_condition);
+ TALLOC_FREE(debug_condition);
debug_condition = NULL;
return CMD_OK;
}
ERROR("%s", p);
ERROR("%s^ %s", spaces, error);
- cprintf(listener, "Parse error in condition \"%s\": %s\n", p, error);
+ cprintf_error(listener, "Parse error in condition \"%s\": %s\n", p, error);
talloc_free(spaces);
talloc_free(text);
* This is thread-safe because the condition is evaluated
* in the main server thread, along with this code.
*/
- talloc_free(debug_condition);
+ TALLOC_FREE(debug_condition);
debug_condition = new_condition;
return CMD_OK;
{
char buffer[1024];
- if (debug_condition) {
+ if (!debug_condition) {
cprintf(listener, "\n");
return CMD_OK;
}