diff options
Diffstat (limited to 'src/namestore/gnunet-namestore.c')
-rw-r--r-- | src/namestore/gnunet-namestore.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 47018e2ec..37995e8c6 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c | |||
@@ -428,6 +428,15 @@ get_existing_record (void *cls, | |||
428 | rde->flags |= GNUNET_NAMESTORE_RF_SHADOW_RECORD; | 428 | rde->flags |= GNUNET_NAMESTORE_RF_SHADOW_RECORD; |
429 | if (1 != public) | 429 | if (1 != public) |
430 | rde->flags |= GNUNET_NAMESTORE_RF_PRIVATE; | 430 | rde->flags |= GNUNET_NAMESTORE_RF_PRIVATE; |
431 | if (GNUNET_YES == etime_is_rel) | ||
432 | { | ||
433 | rde->expiration_time = etime_rel.rel_value_us; | ||
434 | rde->flags |= GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION; | ||
435 | } | ||
436 | else if (GNUNET_NO == etime_is_rel) | ||
437 | rde->expiration_time = etime_abs.abs_value_us; | ||
438 | else | ||
439 | rde->expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us; | ||
431 | GNUNET_assert (NULL != name); | 440 | GNUNET_assert (NULL != name); |
432 | add_qe = GNUNET_NAMESTORE_records_store (ns, | 441 | add_qe = GNUNET_NAMESTORE_records_store (ns, |
433 | &zone_pkey, | 442 | &zone_pkey, |