Windows: initialize to zero Freelance fake root directory

The Freelance fake root directory buffers were not zero-filled.
This results in random behavior that can cause the service to
terminate unexpectedly.

LICENSE MIT

Change-Id: If4e42f74bf07a7296319f3a73f8c7628de4e1fd8
Reviewed-on: http://gerrit.openafs.org/1885
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
Jeffrey Altman 2010-05-02 13:11:14 -04:00 committed by Jeffrey Altman
parent 612bb07ae1
commit 4810026677

View File

@ -219,7 +219,7 @@ void cm_InitFakeRootDir() {
if (cm_fakeDirSize != dirSize) {
if (cm_FakeRootDir)
free(cm_FakeRootDir);
cm_FakeRootDir = malloc(dirSize);
cm_FakeRootDir = calloc(dirSize, 1);
cm_fakeDirSize = dirSize;
}