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; }