mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
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:
parent
3e4daf06a6
commit
4811f432ba
@ -11572,7 +11572,7 @@ int smb_DumpVCP(FILE *outputFile, char *cookie, int lock)
|
|||||||
cookie, ucellp, ucellp->cellp, ucellp->flags, ucellp->ticketLen, ucellp->kvno,
|
cookie, ucellp, ucellp->cellp, ucellp->flags, ucellp->ticketLen, ucellp->kvno,
|
||||||
ucellp->expirationTime, ucellp->gen,
|
ucellp->expirationTime, ucellp->gen,
|
||||||
ucellp->userName,
|
ucellp->userName,
|
||||||
ucellp->cellp->name);
|
ucellp->cellp ? ucellp->cellp->name : "<null>");
|
||||||
WriteFile(outputFile, output, (DWORD)strlen(output), &zilch, NULL);
|
WriteFile(outputFile, output, (DWORD)strlen(output), &zilch, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user