summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPauli <ppzgs1@gmail.com>2021-03-16 10:00:25 +1000
committerPauli <ppzgs1@gmail.com>2021-03-17 10:33:45 +1000
commit7128458b8ae264af012bf5f3c504ba73045f8567 (patch)
tree749e0e9944fea7e4b87b45a8dbe0240eb411e2ca
parent8f391c7d1b1ce4c2edac4fe7a626fc8d337a61a1 (diff)
params: clean up TODO
The TODO being reworked to just be a comment. Fixes #14374 Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/14565)
-rw-r--r--crypto/params_from_text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/params_from_text.c b/crypto/params_from_text.c
index 3ff94c7475..bf3ca61641 100644
--- a/crypto/params_from_text.c
+++ b/crypto/params_from_text.c
@@ -75,8 +75,8 @@ static int prepare_from_text(const OSSL_PARAM *paramdefs, const char *key,
*buf_n = (buf_bits + 7) / 8;
/*
- * TODO(v3.0) is this the right way to do this? This code expects
- * a zero data size to simply mean "arbitrary size".
+ * A zero data size means "arbitrary size", so only do the
+ * range checking if a size is specified.
*/
if (p->data_size > 0) {
if (buf_bits > p->data_size * 8