2002-08-29 Marcus Brinkmann <marcus@g10code.de>
[gpgme.git] / gpgme / passphrase.c
index 52d75ca..b3c89b8 100644 (file)
@@ -68,10 +68,12 @@ _gpgme_passphrase_status_handler (GpgmeCtx ctx, GpgmeStatusCode code, char *args
 
     case GPGME_STATUS_BAD_PASSPHRASE:
       ctx->result.passphrase->bad_passphrase++;
+      ctx->result.passphrase->no_passphrase = 0;
       break;
 
     case GPGME_STATUS_GOOD_PASSPHRASE:
       ctx->result.passphrase->bad_passphrase = 0;
+      ctx->result.passphrase->no_passphrase = 0;
       break;
 
     case GPGME_STATUS_NEED_PASSPHRASE: