Fix panic: Don't free the logfilename in winbind_child_died().
authorMichael Adam <obnox@samba.org>
Wed, 23 Jan 2008 13:33:22 +0000 (14:33 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 23 Jan 2008 13:33:22 +0000 (14:33 +0100)
The child struct is immediately reused, and this results
in a panic when child->logfilename == NULL.

Michael
(This used to be commit da131d089db98017632103aa9bbe38c98f7a3fc1)

source3/winbindd/winbindd_dual.c

index 778886d8e28b87767f2d0eb63082563bc324f912..e21524689bbc5eae4702d66afbe668620b4a9518 100644 (file)
@@ -480,7 +480,6 @@ void winbind_child_died(pid_t pid)
        child->event.fd = 0;
        child->event.flags = 0;
        child->pid = 0;
-       SAFE_FREE(child->logfilename);
 
        schedule_async_request(child);
 }