r19230: Doh ! Fix obvious crash bug.....
authorJeremy Allison <jra@samba.org>
Tue, 10 Oct 2006 16:15:01 +0000 (16:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:23 +0000 (12:15 -0500)
(This used to be commit e6560270499365ca42517f6a7cf40845ee80edfb)

source3/nsswitch/winbindd_dual.c

index f4910c9be792bd211569845d61330be139f3a9e0..d8215ac90db5a4d5994bff11efb4fd788bcf39c3 100644 (file)
@@ -510,8 +510,8 @@ void winbind_msg_offline(int msg_type, struct process_id src, void *buf, size_t
                DEBUG(10,("winbind_msg_offline: sending message to pid %u for domain %s.\n",
                        (unsigned int)child->pid, domain->name ));
 
-               message_send_pid(pid_to_procid(child->pid), MSG_WINBIND_OFFLINE, domain->name,
-                       strlen(domain->name)+1, False);
+               message_send_pid(pid_to_procid(child->pid), MSG_WINBIND_OFFLINE, child->domain->name,
+                       strlen(child->domain->name)+1, False);
        }
 }
 
@@ -561,10 +561,10 @@ void winbind_msg_online(int msg_type, struct process_id src, void *buf, size_t l
                   we only set it online / offline for that domain. */
 
                DEBUG(10,("winbind_msg_online: sending message to pid %u for domain %s.\n",
-                       (unsigned int)child->pid, domain->name ));
+                       (unsigned int)child->pid, child->domain->name ));
 
-               message_send_pid(pid_to_procid(child->pid), MSG_WINBIND_ONLINE, domain->name,
-                       strlen(domain->name)+1, False);
+               message_send_pid(pid_to_procid(child->pid), MSG_WINBIND_ONLINE, child->domain->name,
+                       strlen(child->domain->name)+1, False);
        }
 }