mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
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:
parent
612bb07ae1
commit
4810026677
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user