summaryrefslogtreecommitdiff
path: root/src/gns/plugin_gnsrecord_gns.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-02-03 18:44:40 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-02-03 18:44:40 +0100
commitafd2cb5db220ce528b6222340b31b8a1a365c8e4 (patch)
treeb5267e30561ac9469ba08e2996967c1373dfef36 /src/gns/plugin_gnsrecord_gns.c
parent3d72be07448fd435640c6d0fdc2859601319d07e (diff)
GNS: Introduce REDIRECT records. Fixes #7172
Diffstat (limited to 'src/gns/plugin_gnsrecord_gns.c')
-rw-r--r--src/gns/plugin_gnsrecord_gns.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c
index f270e4473..e74ec96ad 100644
--- a/src/gns/plugin_gnsrecord_gns.c
+++ b/src/gns/plugin_gnsrecord_gns.c
@@ -64,8 +64,7 @@ gns_value_to_string (void *cls,
return GNUNET_IDENTITY_public_key_to_string (&pk);
case GNUNET_GNSRECORD_TYPE_NICK:
- return GNUNET_strndup (data, data_size);
-
+ case GNUNET_GNSRECORD_TYPE_REDIRECT:
case GNUNET_GNSRECORD_TYPE_LEHO:
return GNUNET_strndup (data, data_size);
@@ -190,10 +189,7 @@ gns_string_to_value (void *cls,
return GNUNET_OK;
case GNUNET_GNSRECORD_TYPE_NICK:
- *data = GNUNET_strdup (s);
- *data_size = strlen (s);
- return GNUNET_OK;
-
+ case GNUNET_GNSRECORD_TYPE_REDIRECT:
case GNUNET_GNSRECORD_TYPE_LEHO:
*data = GNUNET_strdup (s);
*data_size = strlen (s);