From: Dr. Stephen Henson Date: Fri, 27 May 2005 21:22:48 +0000 (+0000) Subject: Error checking. X-Git-Tag: FIPS_TEST_9~34 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=35d7cc8166016ad4aedcce1bd861319cce8eac1d;p=oweals%2Fopenssl.git Error checking. --- diff --git a/fips/hmac/fips_hmactest.c b/fips/hmac/fips_hmactest.c index 57797ac5ae..a686a2258a 100644 --- a/fips/hmac/fips_hmactest.c +++ b/fips/hmac/fips_hmactest.c @@ -250,12 +250,16 @@ int hmac_test(BIO *err, const EVP_MD *md, BIO *out, BIO *in) if (Msg) goto parse_error; Msg = string_to_hex(value, &Msglen); + if (!Msg) + goto parse_error; } else if (!strcmp(keyword, "Key")) { if (Key) goto parse_error; Key = string_to_hex(value, &Keylen); + if (!Key) + goto parse_error; } else if (!strcmp(keyword, "Mac")) continue;