From 4811f432ba51b53be4edf8288eaa61613e6b787c Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 12 Mar 2013 00:38:05 -0400 Subject: [PATCH] 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 Reviewed-by: Jeffrey Altman --- src/WINNT/afsd/smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/smb.c b/src/WINNT/afsd/smb.c index 651f8ac359..c1adc591c0 100644 --- a/src/WINNT/afsd/smb.c +++ b/src/WINNT/afsd/smb.c @@ -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 : ""); WriteFile(outputFile, output, (DWORD)strlen(output), &zilch, NULL); }