Assert that SSLfatal() only gets called once
[openssl.git] / ssl / statem / statem_clnt.c
index 4bd94572bbeabb72e7a365ec8f97f436b8a1d020..038fac93c66d8aa326090bf306fa2ca752cedea6 100644 (file)
@@ -2938,10 +2938,12 @@ static int tls_construct_cke_dhe(SSL *s, WPACKET *pkt)
     return 1;
  err:
     EVP_PKEY_free(ckey);
-#endif
+    return 0;
+#else
     SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_TLS_CONSTRUCT_CKE_DHE,
              ERR_R_INTERNAL_ERROR);
     return 0;
+#endif
 }
 
 static int tls_construct_cke_ecdhe(SSL *s, WPACKET *pkt)