Use "==0" instead of "!strcmp" etc
[openssl.git] / crypto / x509v3 / v3_conf.c
index bb1146e674a865e8809dfdf0af4d6d69cb02fe7c..672d3de977729bf6c28494ca63fc786f60a354e4 100644 (file)
@@ -246,10 +246,10 @@ static int v3_check_generic(char **value)
 {
     int gen_type = 0;
     char *p = *value;
-    if ((strlen(p) >= 4) && !strncmp(p, "DER:", 4)) {
+    if ((strlen(p) >= 4) && strncmp(p, "DER:", 4) == 0) {
         p += 4;
         gen_type = 1;
-    } else if ((strlen(p) >= 5) && !strncmp(p, "ASN1:", 5)) {
+    } else if ((strlen(p) >= 5) && strncmp(p, "ASN1:", 5) == 0) {
         p += 5;
         gen_type = 2;
     } else