From 728ead8ebd426307c6b3f1e3794b3a7ab585eebd Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 5 Jun 2020 14:44:59 +0200 Subject: [PATCH] core: Fix setting of the chain_model signature result. * src/verify.c (parse_trust): Fix detection of "chain" keyword. -- Fixes-commit: da6f3dc0c53f11f7432b3c258702db07d6c37f9a from 2007 shortly after introducing this. I doubt that this info has ever been used (it is for qualified signatures, which are only supported using the legacy German RegTP rules for them which were soon overturned by the commercial CAs). Signed-off-by: Werner Koch --- src/verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/verify.c b/src/verify.c index 8aa9d281..81b2ff92 100644 --- a/src/verify.c +++ b/src/verify.c @@ -663,7 +663,7 @@ parse_trust (gpgme_signature_t sig, gpgme_status_code_t code, char *args) { while (*args == ' ') args++; - if (!strncmp (args, "chain", 2) && (args[2] == ' ' || !args[2])) + if (!strncmp (args, "chain", 5) && (args[5] == ' ' || !args[5])) sig->chain_model = 1; } }