openssl: backport build fix when hardware support is used
[openwrt/staging/stintel.git] / package / libs / openssl / patches / 302-Fix_typo_introduced_by_a03f81f4.patch
1 From 581215a519c66db7255ea360ed25bb00033ccd52 Mon Sep 17 00:00:00 2001
2 From: Rich Salz <rsalz@openssl.org>
3 Date: Thu, 22 Sep 2016 08:47:45 -0400
4 Subject: [PATCH] Fix typo introduced by a03f81f4
5
6 Reviewed-by: Richard Levitte <levitte@openssl.org>
7 ---
8 crypto/engine/eng_cryptodev.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 --- a/crypto/engine/eng_cryptodev.c
12 +++ b/crypto/engine/eng_cryptodev.c
13 @@ -939,7 +939,7 @@ static int cryptodev_digest_copy(EVP_MD_
14 if (fstate->mac_len != 0) {
15 if (fstate->mac_data != NULL) {
16 dstate->mac_data = OPENSSL_malloc(fstate->mac_len);
17 - if (dstate->ac_data == NULL) {
18 + if (dstate->mac_data == NULL) {
19 printf("cryptodev_digest_init: malloc failed\n");
20 return 0;
21 }