* verify.c (_gpgme_verify_status_handler): Fix the last change.
+2002-02-26 Marcus Brinkmann <marcus@g10code.de>
+
+ * verify.c (_gpgme_verify_status_handler): Fix the last change.
+
2002-02-25 Marcus Brinkmann <marcus@g10code.de>
* engine.c (_gpgme_engine_op_encrypt_sign): New function.
case STATUS_ERRSIG:
/* The return code is the 6th argument, if it is 9, the problem
is a missing key. */
- for (p = args, i = 0; p && i < 5; i++)
- p = strchr (p, ' ');
- if (p && *(++p) == '9' && *(++p) == '\0')
+ for (p = args, i = 0; p && *p && i < 5; i++)
+ {
+ p = strchr (p, ' ');
+ if (p)
+ while (*p == ' ')
+ p++;
+ }
+ if (p && *(p++) == '9' && (*p == '\0' || *p == ' '))
ctx->result.verify->status = GPGME_SIG_STAT_NOKEY;
else
ctx->result.verify->status = GPGME_SIG_STAT_ERROR;