aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/gnunet-namestore.c')
-rw-r--r--src/namestore/gnunet-namestore.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c
index 94fcb8952..07d045b90 100644
--- a/src/namestore/gnunet-namestore.c
+++ b/src/namestore/gnunet-namestore.c
@@ -878,7 +878,7 @@ del_monitor (void *cls,
878 rd[i].data_size)))) || 878 rd[i].data_size)))) ||
879 (0 == strcmp (vs, value))))) 879 (0 == strcmp (vs, value)))))
880 rdx[rd_left++] = rd[i]; 880 rdx[rd_left++] = rd[i];
881 GNUNET_free_non_null (vs); 881 GNUNET_free (vs);
882 } 882 }
883 if (rd_count == rd_left) 883 if (rd_count == rd_left)
884 { 884 {
@@ -1048,7 +1048,8 @@ run_with_zone_pkey (const struct GNUNET_CONFIGURATION_Handle *cfg)
1048 return; 1048 return;
1049 } 1049 }
1050 add = 1; 1050 add = 1;
1051 typestring = GNUNET_strdup (GNUNET_GNSRECORD_number_to_typename (GNUNET_GNSRECORD_TYPE_NICK)); 1051 typestring = GNUNET_strdup (GNUNET_GNSRECORD_number_to_typename (
1052 GNUNET_GNSRECORD_TYPE_NICK));
1052 name = GNUNET_strdup (GNUNET_GNS_EMPTY_LABEL_AT); 1053 name = GNUNET_strdup (GNUNET_GNS_EMPTY_LABEL_AT);
1053 value = GNUNET_strdup (nickstring); 1054 value = GNUNET_strdup (nickstring);
1054 is_public = 0; 1055 is_public = 0;
@@ -1087,6 +1088,17 @@ run_with_zone_pkey (const struct GNUNET_CONFIGURATION_Handle *cfg)
1087 ret = 1; 1088 ret = 1;
1088 return; 1089 return;
1089 } 1090 }
1091 if ((GNUNET_DNSPARSER_TYPE_SRV == type) ||
1092 (GNUNET_DNSPARSER_TYPE_TLSA == type) ||
1093 (GNUNET_DNSPARSER_TYPE_OPENPGPKEY == type))
1094 {
1095 fprintf (stderr,
1096 _ ("For DNS record types `SRV', `TLSA' and `OPENPGPKEY'"));
1097 fprintf (stderr, ", please use a `BOX' record instead\n");
1098 GNUNET_SCHEDULER_shutdown ();
1099 ret = 1;
1100 return;
1101 }
1090 if (NULL == value) 1102 if (NULL == value)
1091 { 1103 {
1092 fprintf (stderr, 1104 fprintf (stderr,
@@ -1296,7 +1308,7 @@ identity_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego)
1296 return; 1308 return;
1297 } 1309 }
1298 zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (ego); 1310 zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (ego);
1299 GNUNET_free_non_null (ego_name); 1311 GNUNET_free (ego_name);
1300 ego_name = NULL; 1312 ego_name = NULL;
1301 run_with_zone_pkey (cfg); 1313 run_with_zone_pkey (cfg);
1302} 1314}