aboutsummaryrefslogtreecommitdiff
path: root/src/setup/gnunet-setup-gns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/gnunet-setup-gns.c')
-rw-r--r--src/setup/gnunet-setup-gns.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/setup/gnunet-setup-gns.c b/src/setup/gnunet-setup-gns.c
index e96e8973..ad028be1 100644
--- a/src/setup/gnunet-setup-gns.c
+++ b/src/setup/gnunet-setup-gns.c
@@ -1641,17 +1641,20 @@ GNUNET_setup_gns_pseu_entry_changed_cb (GtkEditable *editable,
1641 break; 1641 break;
1642 if (off == rd_count) 1642 if (off == rd_count)
1643 total++; 1643 total++;
1644 rd_new[off].record_type = GNUNET_NAMESTORE_TYPE_PSEU;
1645 rd_new[off].expiration_time = UINT64_MAX;
1646 rd_new[off].flags = GNUNET_NAMESTORE_RF_NONE;
1647 rd_new[off].data_size = strlen (pseu) + 1;
1648 rd_new[off].data = pseu;
1649 if ( (NULL == pseu) || 1644 if ( (NULL == pseu) ||
1650 (0 == strlen (pseu)) ) 1645 (0 == strlen (pseu)) )
1651 { 1646 {
1652 rd_new[off] = rd_new[rd_count - 1]; 1647 rd_new[off] = rd_new[rd_count - 1];
1653 total--; 1648 total--;
1654 } 1649 }
1650 else
1651 {
1652 rd_new[off].record_type = GNUNET_NAMESTORE_TYPE_PSEU;
1653 rd_new[off].expiration_time = UINT64_MAX;
1654 rd_new[off].flags = GNUNET_NAMESTORE_RF_NONE;
1655 rd_new[off].data_size = strlen (pseu) + 1;
1656 rd_new[off].data = pseu;
1657 }
1655 oc = GNUNET_new (struct OperationContext); 1658 oc = GNUNET_new (struct OperationContext);
1656 GNUNET_CONTAINER_DLL_insert (oc_head, oc_tail, oc); 1659 GNUNET_CONTAINER_DLL_insert (oc_head, oc_tail, oc);
1657 oc->qe = GNUNET_NAMESTORE_records_store (namestore, 1660 oc->qe = GNUNET_NAMESTORE_records_store (namestore,