From: Petr Špaček Date: Tue, 10 Apr 2018 07:16:55 +0000 (+0200) Subject: kresd: improve error reporting if cache cannot be opened X-Git-Tag: v2.4.0~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9583595bf43e2149dbfada43f50a35ad94fe256f;p=thirdparty%2Fknot-resolver.git kresd: improve error reporting if cache cannot be opened For some weird reason kresd crashed on assert(false) if it cannot open cache even though it handles this case properly without the assert. --- diff --git a/lib/cache/cdb_lmdb.c b/lib/cache/cdb_lmdb.c index 026210787..71d6adc00 100644 --- a/lib/cache/cdb_lmdb.c +++ b/lib/cache/cdb_lmdb.c @@ -73,7 +73,6 @@ static int lmdb_error(int error) return kr_error(ENOSPC); default: kr_log_error("[cache] LMDB error: %s\n", mdb_strerror(error)); - assert(false); return kr_error(error); } }