summaryrefslogtreecommitdiff
path: root/source4/smbd/process_model.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-11-02 20:55:18 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-11-02 22:00:54 +1100
commita26d9194ffc45e1c95899ee33bc5dd4d35a0dd10 (patch)
treea4ce6f6c1fa2735987d0a9426c3efa978629e664 /source4/smbd/process_model.c
parent41999761f1bd018dd039421e2cfe498e173e2f79 (diff)
downloadsamba-a26d9194ffc45e1c95899ee33bc5dd4d35a0dd10.tar.gz
samba-a26d9194ffc45e1c95899ee33bc5dd4d35a0dd10.tar.bz2
samba-a26d9194ffc45e1c95899ee33bc5dd4d35a0dd10.zip
s4-process_model Fix valgrind-found use of un-initialised variable
The relloc didn't zero the structure for the new process modal, and so m->initialised wasn't initialised. Andrew Bartlett
Diffstat (limited to 'source4/smbd/process_model.c')
-rw-r--r--source4/smbd/process_model.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/smbd/process_model.c b/source4/smbd/process_model.c
index 1696163f99..7b18f583a7 100644
--- a/source4/smbd/process_model.c
+++ b/source4/smbd/process_model.c
@@ -92,6 +92,7 @@ _PUBLIC_ NTSTATUS register_process_model(const void *_ops)
models[num_models].ops = smb_xmemdup(ops, sizeof(*ops));
models[num_models].ops->name = smb_xstrdup(ops->name);
+ models[num_models].initialised = false;
num_models++;