summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2021-04-24 11:56:49 +0200
committerDenys Vlasenko2021-04-24 11:56:49 +0200
commit6ca36077ccde12f4b1e4d730b06284d18c20ac0e (patch)
tree37cb3603a3bc572548b115047f5921936077d83d
parentd005c9f4c7e6afc812612e98fdd120b9b4051c04 (diff)
downloadbusybox-6ca36077ccde12f4b1e4d730b06284d18c20ac0e.zip
busybox-6ca36077ccde12f4b1e4d730b06284d18c20ac0e.tar.gz
tls: "server did not provide EC key" is fatal
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tls.c b/networking/tls.c
index bbb1f41..8492997 100644
--- a/networking/tls.c
+++ b/networking/tls.c
@@ -1957,7 +1957,7 @@ static void send_client_key_exchange(tls_state_t *tls)
uint8_t privkey[CURVE25519_KEYSIZE]; //[32]
if (!(tls->flags & GOT_EC_KEY))
- bb_simple_error_msg("server did not provide EC key");
+ bb_simple_error_msg_and_die("server did not provide EC key");
/* Generate random private key, see RFC 7748 */
tls_get_random(privkey, sizeof(privkey));