diff options
author | Neal H. Walfield <[email protected]> | 2016-10-12 19:39:12 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2016-10-12 19:39:12 +0000 |
commit | 6fdf37f0831949cb279de6dc6b247ab2ed53fe5a (patch) | |
tree | b44f3d842b6f8c251f98fd881e3a99b3cf2d6325 | |
parent | g10: Fix a column's type in TOFU DB. (diff) | |
download | gnupg-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]>
-rw-r--r-- | g10/tofu.c | 2 |
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 |