Przeglądaj źródła

ssl/t1_enc.c: check EVP_MD_CTX_copy return value.

PR: 3201

(Imported from upstream's 8d08627c94)
kris/onging/CECPQ3_patch15
Adam Langley 10 lat temu
rodzic
commit
9f61d7f4a1
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      ssl/t1_enc.c

+ 2
- 1
ssl/t1_enc.c Wyświetl plik

@@ -1221,7 +1221,8 @@ int tls1_mac(SSL *ssl, unsigned char *md, int send)
}
else
{
EVP_MD_CTX_copy(&hmac,hash);
if (!EVP_MD_CTX_copy(&hmac,hash))
return -1;
mac_ctx = &hmac;
}



Ładowanie…
Anuluj
Zapisz