aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2016-10-12 19:39:12 +0000
committerNeal H. Walfield <[email protected]>2016-10-12 19:39:12 +0000
commit6fdf37f0831949cb279de6dc6b247ab2ed53fe5a (patch)
treeb44f3d842b6f8c251f98fd881e3a99b3cf2d6325
parentg10: Fix a column's type in TOFU DB. (diff)
downloadgnupg-6fdf37f0831949cb279de6dc6b247ab2ed53fe5a.tar.gz
gnupg-6fdf37f0831949cb279de6dc6b247ab2ed53fe5a.zip
g10: Correctly determine whether a binding has a conflict.
* g10/tofu.c (build_conflict_set): A binding has a conflict is conflict is *not* NULL, not if it is NULL. -- Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to '')
-rw-r--r--g10/tofu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/tofu.c b/g10/tofu.c
index 97e7a6ebb..ce107ded7 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -1793,7 +1793,7 @@ build_conflict_set (tofu_dbs_t dbs, const char *fingerprint, const char *email)
"select"
/* A binding should only appear once, but try not to break in the
* case of corruption. */
- " fingerprint || case sum(conflict ISNULL) when 0 then '' else '!' end"
+ " fingerprint || case sum(conflict NOTNULL) when 0 then '' else '!' end"
" from bindings where email = ?"
" group by fingerprint"
/* Make sure the current key comes first in the result list (if