diff --git a/cdr/cdr_sqlite3_custom.c b/cdr/cdr_sqlite3_custom.c
index 3bac49550fd1c9948190bd3da883e7d206dae211..b79bb50ac647699c38e0ff857c7327c14a4949ad 100644
--- a/cdr/cdr_sqlite3_custom.c
+++ b/cdr/cdr_sqlite3_custom.c
@@ -172,7 +172,7 @@ static int load_config(int reload)
 		/* Nothing configured */
 		ast_mutex_unlock(&lock);
 		ast_config_destroy(cfg);
-		return 0;
+		return -1;
 	}
 
 	/* Mapping must have a table name */