Browse Source

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

cecylia 6 years ago
parent
commit
5392bc6371
1 changed files with 1 additions and 1 deletions
  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;