Skip to content

Commit

Permalink
s4-process_model Fix valgrind-found use of un-initialised variable
Browse files Browse the repository at this point in the history
The relloc didn't zero the structure for the new process modal, and so
m->initialised wasn't initialised.

Andrew Bartlett
  • Loading branch information
abartlet committed Nov 2, 2010
1 parent 4199976 commit a26d919
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source4/smbd/process_model.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;

Expand Down

0 comments on commit a26d919

Please sign in to comment.