summaryrefslogtreecommitdiffstats
path: root/announce.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-04-12 03:09:56 +0000
committerLennart Poettering <lennart@poettering.net>2005-04-12 03:09:56 +0000
commita20c01bd12216d409e0dfc5d3bbacc940352bfce (patch)
treee91508f26882306be164889a6bacc3be3517814d /announce.c
parentb1d2a6b958d8d7a8ecf79765bb93aa57583d93bd (diff)
assorted work:
* new rr implementation: resource data is stored in parsed form now. * make TXT and SRV functions variadic * many other things git-svn-id: file:///home/lennart/svn/public/avahi/trunk@23 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
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) {