summaryrefslogtreecommitdiffstats
path: root/avahi-core/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-core/server.c')
-rw-r--r--avahi-core/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/avahi-core/server.c b/avahi-core/server.c
index 235247a..3821a27 100644
--- a/avahi-core/server.c
+++ b/avahi-core/server.c
@@ -713,9 +713,10 @@ static AvahiLegacyUnicastReflectSlot* allocate_slot(AvahiServer *s) {
if (!(slot = avahi_new(AvahiLegacyUnicastReflectSlot, 1)))
return NULL; /* OOM */
- slot = s->legacy_unicast_reflect_slots[idx];
+ s->legacy_unicast_reflect_slots[idx] = slot;
slot->id = s->legacy_unicast_reflect_id++;
slot->server = s;
+
return slot;
}