Use "==0" instead of "!strcmp" etc
[openssl.git] / crypto / x509v3 / v3_asid.c
index 26ca15844b03185cbfdf29697512ef638a8bc093..c5e569405febb4b4417cb37d58a48c9cf197e573 100644 (file)
@@ -572,7 +572,7 @@ static void *v2i_ASIdentifiers(const struct v3_ext_method *method,
         /*
          * Handle inheritance.
          */
-        if (!strcmp(val->value, "inherit")) {
+        if (strcmp(val->value, "inherit") == 0) {
             if (v3_asid_add_inherit(asid, which))
                 continue;
             X509V3err(X509V3_F_V2I_ASIDENTIFIERS,