summaryrefslogtreecommitdiffstats
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-10-28 09:15:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:14 -0500
commit20299e5bf5245166308d2fe1feaaa204c03c0472 (patch)
treec71830e1ba7dfe2a70b4138cce5cd0871230eb9d /source3/nsswitch
parentf9b750542933cb60eca7da335193c36361496622 (diff)
downloadsamba-20299e5bf5245166308d2fe1feaaa204c03c0472.tar.gz
samba-20299e5bf5245166308d2fe1feaaa204c03c0472.tar.xz
samba-20299e5bf5245166308d2fe1feaaa204c03c0472.zip
r11368: Remove a memleak that just cost me half an hour: If we terminate inside a
message handler, the list of messages from retrieve_all_messages is not properly freed. Not important, just confusing :-) Volker (This used to be commit d20388750dcfe7e0680246f7e3e6beb3a6d51a4a)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index 56e0f16bcb2..a62fd32b20d 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/nsswitch/winbindd.c
@@ -213,7 +213,7 @@ static void msg_reload_services(int msg_type, struct process_id src, void *buf,
/* React on 'smbcontrol winbindd shutdown' in the same way as on SIGTERM*/
static void msg_shutdown(int msg_type, struct process_id src, void *buf, size_t len)
{
- terminate();
+ do_sigterm = True;
}
static struct winbindd_dispatch_table {