aboutsummaryrefslogtreecommitdiff
path: root/src/util/dnsparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/dnsparser.c')
-rw-r--r--src/util/dnsparser.c9
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],