core: Fix possible compliance mode detection error.
authorWerner Koch <wk@gnupg.org>
Wed, 18 Apr 2018 12:41:50 +0000 (14:41 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 18 Apr 2018 12:41:50 +0000 (14:41 +0200)
* src/verify.c (_gpgme_verify_status_handler): Insert missing break.
--

Before the insertion of the compliance status checking the break in
the default clause was used by the STATUS_PLAINTEXT code.  That got
lost.  I don't see any actual harm due to different values currently
in use for the compliance status.

Fixes-commit: 05fa2a9c7764b28fdac35eb72631439df948ca0e
Signed-off-by: Werner Koch <wk@gnupg.org>
src/verify.c

index 4eab902..c3afdef 100644 (file)
@@ -1094,6 +1094,7 @@ _gpgme_verify_status_handler (void *priv, gpgme_status_code_t code, char *args)
       err = _gpgme_parse_plaintext (args, &opd->result.file_name);
       if (err)
        return err;
+      break;
 
     case GPGME_STATUS_VERIFICATION_COMPLIANCE_MODE:
       PARSE_COMPLIANCE_FLAGS (args, opd->current_sig);