pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / mail / opendkim / patches / sql-filter.patch
blob23c522712c9b83b4884c678e2463942280b725a5
1 --- opendkim-2.11.0~alpha.orig/opendkim/opendkim-db.c 2015-10-20 02:21:23.000000000 +0000
2 +++ ./opendkim-2.11.0~alpha/opendkim/opendkim-db.c 2017-09-20 17:41:51.410641883 +0000
3 @@ -5994,9 +5994,11 @@
5 char query[BUFRSZ];
7 - snprintf(query, sizeof query, "SELECT %s,%s FROM %s",
8 + snprintf(query, sizeof query, "SELECT %s,%s FROM %s%s%s",
9 dsn->dsn_keycol, dsn->dsn_datacol,
10 - dsn->dsn_table);
11 + dsn->dsn_table,
12 + dsn->dsn_filter == NULL ? "" : " WHERE ",
13 + dsn->dsn_filter == NULL ? "" : dsn->dsn_filter);
15 err = odbx_query((odbx_t *) db->db_handle, query, 0);
16 if (err < 0)