]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
kresd: improve error reporting if cache cannot be opened
authorPetr Špaček <petr.spacek@nic.cz>
Tue, 10 Apr 2018 07:16:55 +0000 (09:16 +0200)
committerGrigorii Demidov <grigorii.demidov@nic.cz>
Fri, 1 Jun 2018 13:52:56 +0000 (15:52 +0200)
For some weird reason kresd crashed on assert(false) if it cannot open
cache even though it handles this case properly without the assert.

lib/cache/cdb_lmdb.c

index 0262107879bbbbbbc4ce78d5416e612ff2ac2840..71d6adc00abba6f3049a90d302501637061145e0 100644 (file)
@@ -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);
        }
 }