if ((ctx->backend = rspamd_fuzzy_backend_open (ctx->hashfile, &err)) == NULL) {
msg_err ("cannot open backend: %e", err);
g_error_free (err);
- exit (EXIT_FAILURE);
+ exit (EXIT_SUCCESS);
}
server_stat->fuzzy_hashes = rspamd_fuzzy_backend_count (ctx->backend);
fallback_journal[] = "PRAGMA journal_mode=\"off\";";
int rc;
+ if (path == NULL) {
+ g_set_error (err, rspamd_fuzzy_backend_quark (),
+ ENOENT, "Path has not been specified");
+ return NULL;
+ }
/* First of all we check path for existence */
dir = g_path_get_dirname (path);
if (dir == NULL) {