]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
certtool: fix parsing of --verify-profile option
authorDaiki Ueno <ueno@gnu.org>
Mon, 3 May 2021 12:19:22 +0000 (14:19 +0200)
committerDaiki Ueno <ueno@gnu.org>
Mon, 3 May 2021 12:19:22 +0000 (14:19 +0200)
Signed-off-by: Daiki Ueno <ueno@gnu.org>
src/certtool.c

index f4e2f1b16d647b412221f8c3af7d7fa92477b21b..2f1f367184345aefd3bd3367eb30b06d7b6a677c 100644 (file)
@@ -1423,7 +1423,7 @@ static void cmd_parser(int argc, char **argv)
        }
 
        if (HAVE_OPT(VERIFY_PROFILE)) {
-               if (strcasecmp(OPT_ARG(VERIFY_PROFILE), "none")) {
+               if (strcasecmp(OPT_ARG(VERIFY_PROFILE), "none") == 0) {
                        cinfo.verification_profile = (gnutls_sec_param_t)GNUTLS_PROFILE_UNKNOWN;
                } else {
                        cinfo.verification_profile = (gnutls_sec_param_t)gnutls_certificate_verification_profile_get_id(OPT_ARG(VERIFY_PROFILE));