From 2eb04f5c86779bcb5c0afa1ca18ec7c51c30caa2 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Mon, 7 Nov 2022 19:56:27 +0100 Subject: [PATCH] Improved check of the UDP server network address for errors before accepting it. --- Configuration.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Configuration.cpp b/Configuration.cpp index 919d13400..565b73b2e 100644 --- a/Configuration.cpp +++ b/Configuration.cpp @@ -2464,7 +2464,8 @@ void Configuration::impl::on_udp_server_line_edit_editingFinished () case 2: iperr = "Error between second and third number";break; case 3: iperr = "Error between third and fourth number";break; case 4: iperr = ""; break; - default: iperr = "Unknown error n=" + n; + case 5: iperr = "Invalid characters after IP address"; break; + default: iperr = "Unknown error parsing network address"; } if (n != 4) {