Fix bug #7617 - smbd coredump due to uninitialized variables in the performance count...
authorJeremy Allison <jra@samba.org>
Thu, 12 Aug 2010 21:24:01 +0000 (14:24 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Jan 2011 16:58:50 +0000 (17:58 +0100)
commit6dc20e50d0bbd122e47b67bac74a9e6d4af60aea
tree4c66e4dfe210453798bd5a382d598a8ea85373e4
parent4447ae9ccd9091776cd2fbed955e856073f253eb
Fix bug #7617 - smbd coredump due to uninitialized variables in the performance counter code.

In the file rpc_server.c, function _winreg_QueryValue()

uint8_t *outbuf

Should be :

uint8_t *outbuf = NULL;

As it is later freed by

      if (free_buf) SAFE_FREE(outbuf);

in some cases, this frees the unintialized outbuf, which causes a coredump.
(cherry picked from commit 84fd910c347ddfad6f01edbe7f6e25546c8382ee)
(cherry picked from commit 80e65236158d6f1690bf9f153c0eb12d81d56b8a)
(cherry picked from commit 78d1a15920de4ef3f230511257ee2f334f89a642)
source3/rpc_server/srv_winreg_nt.c