git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tidying
[exim.git]
/
src
/
src
/
lookups
/
lmdb.c
diff --git
a/src/src/lookups/lmdb.c
b/src/src/lookups/lmdb.c
index d9cf25d548eac36f8416224731c3af47d2bbeb1b..3a3eebcba11544b95c1f484b960bbcc1c2a61800 100644
(file)
--- a/
src/src/lookups/lmdb.c
+++ b/
src/src/lookups/lmdb.c
@@
-2,9
+2,10
@@
* Exim - an Internet mail transport agent *
*************************************************/
* Exim - an Internet mail transport agent *
*************************************************/
+/* Copyright (c) The Exim Maintainers 2020 - 2022 */
/* Copyright (c) University of Cambridge 2016 - 2018 */
/* Copyright (c) University of Cambridge 2016 - 2018 */
-/* Copyright (c) The Exim Maintainers 2020 */
/* See the file NOTICE for conditions of use and distribution. */
/* See the file NOTICE for conditions of use and distribution. */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "../exim.h"
#include "../exim.h"
@@
-31,7
+32,7
@@
Lmdbstrct * lmdb_p;
int ret, save_errno;
const uschar * errstr;
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)))
lmdb_p->txn = NULL;
if ((ret = mdb_env_create(&db_env)))
@@
-129,14
+130,15
@@
mdb_env_close(db_env);
#include "../version.h"
#include "../version.h"
-void
-lmdb_version_report(
FILE * f
)
+gstring *
+lmdb_version_report(
gstring * g
)
{
{
-
fprintf(f
, "Library version: LMDB: Compile: %d.%d.%d\n",
- MDB_VERSION_MAJOR, MDB_VERSION_MINOR, MDB_VERSION_PATCH);
+
g = string_fmt_append(g
, "Library version: LMDB: Compile: %d.%d.%d\n",
+
MDB_VERSION_MAJOR, MDB_VERSION_MINOR, MDB_VERSION_PATCH);
#ifdef DYNLOOKUP
#ifdef DYNLOOKUP
-
fprintf(f
, " Exim version %s\n", EXIM_VERSION_STR);
+
g = string_fmt_append(g
, " Exim version %s\n", EXIM_VERSION_STR);
#endif
#endif
+return g;
}
static lookup_info lmdb_lookup_info = {
}
static lookup_info lmdb_lookup_info = {