From 4e5b0abe868d344b1b415719db34b1f5f3aa94d0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 1 Jul 2018 19:54:13 +0200 Subject: clarify error message of #5375 --- src/util/dnsparser.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/util/dnsparser.c b/src/util/dnsparser.c index 57d0a014c..6fb6d657f 100644 --- a/src/util/dnsparser.c +++ b/src/util/dnsparser.c @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -956,8 +956,11 @@ GNUNET_DNSPARSER_builder_add_name (char *dst, len = dot - idna_name; if ( (len >= 64) || (0 == len) ) { - GNUNET_break (0); - goto fail; /* segment too long or empty */ + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Invalid DNS name `%s': label with %u characters encountered\n", + name, + len); + goto fail; /* label too long or empty */ } dst[pos++] = (char) (uint8_t) len; GNUNET_memcpy (&dst[pos], -- cgit v1.2.3