mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
g10: Check for a new binding a bit later.
* g10/tofu.c (build_conflict_set): Check for the current key after
looking for conflicts and removing any '!'.
--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
Fixes-commit: 1f1f56e6
This commit is contained in:
parent
7b3e8572e3
commit
ee06b3f788
1 changed files with 9 additions and 9 deletions
18
g10/tofu.c
18
g10/tofu.c
|
@ -1769,15 +1769,6 @@ build_conflict_set (tofu_dbs_t dbs, const char *fingerprint, const char *email)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the current binding has not yet been recorded, add it to the
|
|
||||||
* list. (The order by above ensures that if it is present, it will
|
|
||||||
* be first.) */
|
|
||||||
if (! (conflict_set && strcmp (conflict_set->d, fingerprint) == 0))
|
|
||||||
{
|
|
||||||
add_to_strlist (&conflict_set, fingerprint);
|
|
||||||
conflict_set->flags |= BINDING_NEW;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Set BINDING_CONFLICT if the binding has a known conflict. This
|
/* Set BINDING_CONFLICT if the binding has a known conflict. This
|
||||||
* allows us to distinguish between bindings where the user
|
* allows us to distinguish between bindings where the user
|
||||||
* explicitly set the policy to ask and bindings where we set the
|
* explicitly set the policy to ask and bindings where we set the
|
||||||
|
@ -1801,6 +1792,15 @@ build_conflict_set (tofu_dbs_t dbs, const char *fingerprint, const char *email)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If the current binding has not yet been recorded, add it to the
|
||||||
|
* list. (The order by above ensures that if it is present, it will
|
||||||
|
* be first.) */
|
||||||
|
if (! (conflict_set && strcmp (conflict_set->d, fingerprint) == 0))
|
||||||
|
{
|
||||||
|
add_to_strlist (&conflict_set, fingerprint);
|
||||||
|
conflict_set->flags |= BINDING_NEW;
|
||||||
|
}
|
||||||
|
|
||||||
conflict_set_count = strlist_length (conflict_set);
|
conflict_set_count = strlist_length (conflict_set);
|
||||||
|
|
||||||
/* Eliminate false conflicts. */
|
/* Eliminate false conflicts. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue