projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix return-value checks in OCSP_resp_get1_id()
[openssl.git]
/
crypto
/
ocsp
/
ocsp_cl.c
diff --git
a/crypto/ocsp/ocsp_cl.c
b/crypto/ocsp/ocsp_cl.c
index 118b66a2f5015fb2fe27ac0483d0b6c00127a106..f6101e1532e4e9ae2645cce3ace6a079a1c4dd5e 100644
(file)
--- a/
crypto/ocsp/ocsp_cl.c
+++ b/
crypto/ocsp/ocsp_cl.c
@@
-230,7
+230,7
@@
int OCSP_resp_get1_id(const OCSP_BASICRESP *bs,
} else {
return 0;
}
- if (
pname == NULL &&
pid == NULL)
+ if (
*pname == NULL && *
pid == NULL)
return 0;
return 1;
}