summaryrefslogtreecommitdiffstats
path: root/announce.c
diff options
context:
space:
mode:
Diffstat (limited to 'announce.c')
-rw-r--r--announce.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/announce.c b/announce.c
index 9229753..1671758 100644
--- a/announce.c
+++ b/announce.c
@@ -116,13 +116,18 @@ void flx_announce_entry(flxServer *s, flxServerEntry *e) {
static flxRecord *make_goodbye_record(flxRecord *r) {
gchar *t;
+ flxRecord *g;
g_assert(r);
g_message("Preparing goodbye for record [%s]", t = flx_record_to_string(r));
g_free(t);
- return flx_record_new(r->key, r->data, r->size, 0);
+ g = flx_record_copy(r);
+ g_assert(g->ref == 1);
+ g->ttl = 0;
+
+ return g;
}
void flx_goodbye_interface(flxServer *s, flxInterface *i, gboolean goodbye) {