Use "==0" instead of "!strcmp" etc
[openssl.git] / crypto / ocsp / ocsp_lib.c
index 62a5812b5684b51bc98fb6d41631fd2752b10a29..1f383f6c83db805c1eff95daadc36cf18ed51641 100644 (file)
@@ -196,10 +196,10 @@ int OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath,
 
     *(p++) = '\0';
 
-    if (!strcmp(buf, "http")) {
+    if (strcmp(buf, "http") == 0) {
         *pssl = 0;
         port = "80";
-    } else if (!strcmp(buf, "https")) {
+    } else if (strcmp(buf, "https") == 0) {
         *pssl = 1;
         port = "443";
     } else