changeset 7342 | 3291c8473ecd |
7339:46c33b1954eb | 7342:3291c8473ecd |
---|---|
1 # Developed in house: Solaris specific |
|
2 # It checks the validity of the context. |
|
3 # This change is inside the FIPS canister; thus, not applicable to |
|
4 # the upstream. |
|
5 --- a/crypto/hmac/hmac.c 2016-11-09 14:41:31.820245175 -0800 |
|
6 +++ b/crypto/hmac/hmac.c 2016-11-09 14:42:13.816500695 -0800 |
|
7 @@ -75,8 +75,10 @@ |
|
8 reset=1; |
|
9 ctx->md=md; |
|
10 } |
|
11 - else |
|
12 + else if (ctx->md != NULL) |
|
13 md=ctx->md; |
|
14 + else |
|
15 + goto err; |
|
16 |
|
17 if (key != NULL) |
|
18 { |