Error checking.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 27 May 2005 21:22:48 +0000 (21:22 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 27 May 2005 21:22:48 +0000 (21:22 +0000)
fips/hmac/fips_hmactest.c

index 57797ac5aefb453e78d4fa692b0d0b84cfc5d637..a686a2258aeae9bfd8e40c6cfd296d23de046fe2 100644 (file)
@@ -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;