mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-07 17:33:02 +01:00
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 <neal@g10code.com>
This commit is contained in:
parent
78eda335fd
commit
6fdf37f083
@ -1793,7 +1793,7 @@ build_conflict_set (tofu_dbs_t dbs, const char *fingerprint, const char *email)
|
|||||||
"select"
|
"select"
|
||||||
/* A binding should only appear once, but try not to break in the
|
/* A binding should only appear once, but try not to break in the
|
||||||
* case of corruption. */
|
* 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 = ?"
|
" from bindings where email = ?"
|
||||||
" group by fingerprint"
|
" group by fingerprint"
|
||||||
/* Make sure the current key comes first in the result list (if
|
/* Make sure the current key comes first in the result list (if
|
||||||
|
Loading…
x
Reference in New Issue
Block a user