X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/1ddb1855402d48ad735e46abaf0d662e45600ecd..a85c067ba6c6940512cf57ec213277a370d87e70:/src/src/lookups/lmdb.c diff --git a/src/src/lookups/lmdb.c b/src/src/lookups/lmdb.c index a885badf1..ccfdbe453 100644 --- a/src/src/lookups/lmdb.c +++ b/src/src/lookups/lmdb.c @@ -2,9 +2,10 @@ * Exim - an Internet mail transport agent * *************************************************/ +/* Copyright (c) The Exim Maintainers 2020 - 2022 */ /* Copyright (c) University of Cambridge 2016 - 2018 */ -/* Copyright (c) The Exim Maintainers 2020 - 2021 */ /* See the file NOTICE for conditions of use and distribution. */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "../exim.h" @@ -31,7 +32,7 @@ Lmdbstrct * lmdb_p; int ret, save_errno; const uschar * errstr; -lmdb_p = store_get(sizeof(Lmdbstrct), FALSE); +lmdb_p = store_get(sizeof(Lmdbstrct), GET_UNTAINTED); lmdb_p->txn = NULL; if ((ret = mdb_env_create(&db_env))) @@ -130,10 +131,9 @@ mdb_env_close(db_env); #include "../version.h" gstring * -lmdb_version_report(BOOL is_stdout) +lmdb_version_report(gstring * g) { -gstring * g = string_fmt_append(g, - "Library version: LMDB: Compile: %d.%d.%d\n", +g = string_fmt_append(g, "Library version: LMDB: Compile: %d.%d.%d\n", MDB_VERSION_MAJOR, MDB_VERSION_MINOR, MDB_VERSION_PATCH); #ifdef DYNLOOKUP g = string_fmt_append(g, " Exim version %s\n", EXIM_VERSION_STR);