Windows: avoid null cellp dereference during dump

When performing a memory dump if cm_ucell_t.cellp is NULL, do
not attempt to print the cell name.

Change-Id: I146b90b5424b93d0c52a758b33fcff1bcf441e77
Reviewed-on: http://gerrit.openafs.org/9582
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
Jeffrey Altman 2013-03-12 00:38:05 -04:00
parent 3e4daf06a6
commit 4811f432ba

View File

@ -11572,7 +11572,7 @@ int smb_DumpVCP(FILE *outputFile, char *cookie, int lock)
cookie, ucellp, ucellp->cellp, ucellp->flags, ucellp->ticketLen, ucellp->kvno,
ucellp->expirationTime, ucellp->gen,
ucellp->userName,
ucellp->cellp->name);
ucellp->cellp ? ucellp->cellp->name : "<null>");
WriteFile(outputFile, output, (DWORD)strlen(output), &zilch, NULL);
}