Fix return-value checks in OCSP_resp_get1_id()
Commit added the function
but would improperly report success if the underlying dup operation
failed.
@@ -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;
}
