[openssl] master update

Dr. Paul Dale pauli at openssl.org
Wed Jun 12 03:03:28 UTC 2019


The branch master has been updated
       via  c79b6b874b734c4fc495201256648f5b726ec90c (commit)
      from  a2e520447e17a58b52cdf41ab1218b020f44e4a6 (commit)


- Log -----------------------------------------------------------------
commit c79b6b874b734c4fc495201256648f5b726ec90c
Author: Pauli <paul.dale at oracle.com>
Date:   Wed Jun 12 09:48:13 2019 +1000

    OSSL_PARAM example code bug fix.
    
    Technically not a bug since the code worked but the array index shouldn't have
    been constant after searching for the field.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/9136)

-----------------------------------------------------------------------

Summary of changes:
 doc/man3/OSSL_PARAM.pod | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/man3/OSSL_PARAM.pod b/doc/man3/OSSL_PARAM.pod
index 50089b4..fb8c6fd 100644
--- a/doc/man3/OSSL_PARAM.pod
+++ b/doc/man3/OSSL_PARAM.pod
@@ -276,8 +276,8 @@ could fill in the parameters like this:
             *(char **)params[i].data = "foo value";
             *params[i].return_size = 10; /* size of "foo value" */
         } else if (strcmp(params[i].key, "bar") == 0) {
-            memcpy(params[1].data, "bar value", 10);
-            *params[1].return_size = 10; /* size of "bar value" */
+            memcpy(params[i].data, "bar value", 10);
+            *params[i].return_size = 10; /* size of "bar value" */
         }
         /* Ignore stuff we don't know */
     }


More information about the openssl-commits mailing list