mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
DOC: Fix example in OSSL_PARAM_int.pod
This fixes an incorrect NULL check. Fixes #11162 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13426)
This commit is contained in:
parent
f1d6670840
commit
3800cc6f4d
@ -362,11 +362,11 @@ could fill in the parameters like this:
|
||||
|
||||
OSSL_PARAM *p;
|
||||
|
||||
if ((p = OSSL_PARAM_locate(params, "foo")) == NULL)
|
||||
if ((p = OSSL_PARAM_locate(params, "foo")) != NULL)
|
||||
OSSL_PARAM_set_utf8_ptr(p, "foo value");
|
||||
if ((p = OSSL_PARAM_locate(params, "bar")) == NULL)
|
||||
if ((p = OSSL_PARAM_locate(params, "bar")) != NULL)
|
||||
OSSL_PARAM_set_utf8_ptr(p, "bar value");
|
||||
if ((p = OSSL_PARAM_locate(params, "cookie")) == NULL)
|
||||
if ((p = OSSL_PARAM_locate(params, "cookie")) != NULL)
|
||||
OSSL_PARAM_set_utf8_ptr(p, "cookie value");
|
||||
|
||||
=head1 SEE ALSO
|
||||
|
Loading…
Reference in New Issue
Block a user