summaryrefslogtreecommitdiffstats
path: root/providers/implementations/kdfs
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2020-08-11 15:24:52 +1000
committerShane Lontis <shane.lontis@oracle.com>2020-08-24 11:19:28 +1000
commit61d61c5fd227903bb34562fc06531e91e9453f64 (patch)
tree6b467998c90896d330d8a8ae0f8dd72bb776058b /providers/implementations/kdfs
parentf2bfc53b02fd4cf328cf6200452b86adfdc15489 (diff)
Fix coverity CID #1465794 - Uninitialized pointer read in x942_encode_otherinfo()
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/12628)
Diffstat (limited to 'providers/implementations/kdfs')
-rw-r--r--providers/implementations/kdfs/x942kdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/kdfs/x942kdf.c b/providers/implementations/kdfs/x942kdf.c
index 3ca87cddc2..d1a1ee443c 100644
--- a/providers/implementations/kdfs/x942kdf.c
+++ b/providers/implementations/kdfs/x942kdf.c
@@ -164,7 +164,7 @@ static int x942_encode_otherinfo(size_t keylen,
/* keylenbits must fit into 4 bytes */
if (keylen > 0xFFFFFF)
- goto err;
+ return 0;
keylen_bits = 8 * keylen;
/* Calculate the size of the buffer */