From ce1a70e2dc00ed01ae80efc7c0b09224a6d14018 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Wed, 29 Jan 2025 10:15:45 -0300 Subject: [PATCH] fix error msg --- mongoose.c | 2 +- src/tls_builtin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index 8717b6b18c..f7e177b55f 100644 --- a/mongoose.c +++ b/mongoose.c @@ -10889,7 +10889,7 @@ static int mg_tls_client_recv_hello(struct mg_connection *c) { return 0; } fail: - mg_error(c, "bad client hello"); + mg_error(c, "bad server hello"); return -1; } diff --git a/src/tls_builtin.c b/src/tls_builtin.c index 6ad48a9023..992954bfa7 100644 --- a/src/tls_builtin.c +++ b/src/tls_builtin.c @@ -928,7 +928,7 @@ static int mg_tls_client_recv_hello(struct mg_connection *c) { return 0; } fail: - mg_error(c, "bad client hello"); + mg_error(c, "bad server hello"); return -1; }