projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Explicitly test against NULL; do not use !p or similar
[oweals/openssl.git]
/
crypto
/
ts
/
ts_rsp_sign.c
diff --git
a/crypto/ts/ts_rsp_sign.c
b/crypto/ts/ts_rsp_sign.c
index 9faa42fe3a47e66f321b484dc9bec7a084b7be7e..ed0979e584374475ecf837f295eeadceb639314d 100644
(file)
--- a/
crypto/ts/ts_rsp_sign.c
+++ b/
crypto/ts/ts_rsp_sign.c
@@
-505,7
+505,7
@@
static ASN1_OBJECT *ts_RESP_get_policy(TS_RESP_CTX *ctx)
if (!OBJ_cmp(requested, current))
policy = current;
}
- if (
!policy
) {
+ if (
policy == NULL
) {
TSerr(TS_F_TS_RESP_GET_POLICY, TS_R_UNACCEPTABLE_POLICY);
TS_RESP_CTX_set_status_info(ctx, TS_STATUS_REJECTION,
"Requested policy is not " "supported.");