diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-07-01 19:54:13 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-07-01 19:54:13 +0200 |
commit | 4e5b0abe868d344b1b415719db34b1f5f3aa94d0 (patch) | |
tree | ce1c3e59d0a58824b41b7802b83cf12196cc5a10 /src/util/dnsparser.c | |
parent | a62a0839916306a4007d3f2b076878b7a29022ec (diff) | |
download | gnunet-4e5b0abe868d344b1b415719db34b1f5f3aa94d0.tar.gz gnunet-4e5b0abe868d344b1b415719db34b1f5f3aa94d0.zip |
clarify error message of #5375
Diffstat (limited to 'src/util/dnsparser.c')
-rw-r--r-- | src/util/dnsparser.c | 9 |
1 files 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 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ | 17 | */ |
@@ -956,8 +956,11 @@ GNUNET_DNSPARSER_builder_add_name (char *dst, | |||
956 | len = dot - idna_name; | 956 | len = dot - idna_name; |
957 | if ( (len >= 64) || (0 == len) ) | 957 | if ( (len >= 64) || (0 == len) ) |
958 | { | 958 | { |
959 | GNUNET_break (0); | 959 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
960 | goto fail; /* segment too long or empty */ | 960 | "Invalid DNS name `%s': label with %u characters encountered\n", |
961 | name, | ||
962 | len); | ||
963 | goto fail; /* label too long or empty */ | ||
961 | } | 964 | } |
962 | dst[pos++] = (char) (uint8_t) len; | 965 | dst[pos++] = (char) (uint8_t) len; |
963 | GNUNET_memcpy (&dst[pos], | 966 | GNUNET_memcpy (&dst[pos], |