- cpy)) ||
- (GNUNET_OK !=
- GNUNET_DNSPARSER_builder_add_name (nsbuf, sizeof(nsbuf), &off, at)))
+ cpy))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ _ (
+ "Failed to serialize GNS2DNS record with value `%s': Not a DNS name.\n"),
+ s);
+ GNUNET_free (cpy);
+ return GNUNET_SYSERR;
+ }
+#ifndef LSD001 //The DNS server location/name is in UTF-8
+ GNUNET_memcpy (&nsbuf[off], at, strlen (at) + 1);
+ off += strlen (at) + 1;
+#else
+ if (GNUNET_OK !=
+ GNUNET_DNSPARSER_builder_add_name (nsbuf, sizeof(nsbuf), &off, at))