projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80790d8
)
Error checking.
author
Dr. Stephen Henson
<steve@openssl.org>
Fri, 27 May 2005 21:22:48 +0000
(21:22 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Fri, 27 May 2005 21:22:48 +0000
(21:22 +0000)
fips/hmac/fips_hmactest.c
patch
|
blob
|
history
diff --git
a/fips/hmac/fips_hmactest.c
b/fips/hmac/fips_hmactest.c
index 57797ac5aefb453e78d4fa692b0d0b84cfc5d637..a686a2258aeae9bfd8e40c6cfd296d23de046fe2 100644
(file)
--- 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;