From a26d9194ffc45e1c95899ee33bc5dd4d35a0dd10 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 2 Nov 2010 20:55:18 +1100 Subject: 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 --- source4/smbd/process_model.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/smbd') 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++; -- cgit