Explicitly test against NULL; do not use !p or similar
[oweals/openssl.git] / crypto / ts / ts_rsp_sign.c
index 9faa42fe3a47e66f321b484dc9bec7a084b7be7e..ed0979e584374475ecf837f295eeadceb639314d 100644 (file)
@@ -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.");