1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-18 05:13:56 +02:00
openwrt-packages/mail/postfix/patches/300-bdb_hash_segfault.patch
Rosen Penev c7a52d9a95
postfix: Update to 3.4.4
Switched to HTTP from FTP for one of the mirrors.

Rebased Patches.

Removed ENGINES patch as it is only relevant for OpenSSL 1.0.2.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-03-28 19:50:14 -07:00

14 lines
656 B
Diff

--- a/src/util/dict_db.c
+++ b/src/util/dict_db.c
@@ -750,8 +750,8 @@ static DICT *dict_db_open(const char *class, const char *path, int open_flags,
msg_fatal("create DB database: %m");
if (db == 0)
msg_panic("db_create null result");
- if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
- msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
+// if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
+// msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
db_base_buf = vstring_alloc(100);
#if DB_VERSION_MAJOR == 6 || DB_VERSION_MAJOR == 5 || \
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)