projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use "==0" instead of "!strcmp" etc
[openssl.git]
/
crypto
/
ocsp
/
ocsp_lib.c
diff --git
a/crypto/ocsp/ocsp_lib.c
b/crypto/ocsp/ocsp_lib.c
index 62a5812b5684b51bc98fb6d41631fd2752b10a29..1f383f6c83db805c1eff95daadc36cf18ed51641 100644
(file)
--- a/
crypto/ocsp/ocsp_lib.c
+++ b/
crypto/ocsp/ocsp_lib.c
@@
-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