From: Lennart Poettering Date: Sun, 21 Aug 2005 17:23:22 +0000 (+0000) Subject: * fix memory corruption bug in reflection engine X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=3b57305e0b65a85a7e3ad12b138a247bd7763c71;p=catta * fix memory corruption bug in reflection engine git-svn-id: file:///home/lennart/svn/public/avahi/trunk@385 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- 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; }