Explorar o código

fixed bug that causes relay station to seg fault when receiving curve 25519 w/ openssl version < 1.1.0e

cecylia %!s(int64=6) %!d(string=hai) anos
pai
achega
5392bc6371
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      relay_station/crypto.c

+ 1 - 1
relay_station/crypto.c

@@ -358,7 +358,7 @@ int extract_parameters(flow *f, uint8_t *hs){
 
         f->dh = dh;
     } else if (f->keyex_alg == 2){
-        EC_KEY *ecdh;
+        EC_KEY *ecdh = NULL;
         EC_GROUP *ngroup;
         const EC_GROUP *group;