]> git.meshlink.io Git - catta/commitdiff
* fix memory corruption bug in reflection engine
authorLennart Poettering <lennart@poettering.net>
Sun, 21 Aug 2005 17:23:22 +0000 (17:23 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 21 Aug 2005 17:23:22 +0000 (17:23 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@385 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/server.c

index 235247a66bbf3b40c100e84ee4b49f62c7aa72d7..3821a270b4e497128df1ca35f7a0e8166adfb677 100644 (file)
@@ -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;
 }