avoid double-free cell name canonicalization

if we free the cell name, so note it so we don't try again.

FIXES 126813

Change-Id: I4149fac057c587123f6bf6da8a42a4cd5e590716
Reviewed-on: http://gerrit.openafs.org/1654
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Derrick Brashear 2010-03-24 17:18:24 -04:00
parent 165bd14126
commit 37eeead346

View File

@ -1251,6 +1251,7 @@ afsconf_GetAfsdbInfo(char *acellName, char *aservice,
strlcpy(acellInfo->name, realCellName, strlcpy(acellInfo->name, realCellName,
sizeof(acellInfo->name)); sizeof(acellInfo->name));
free(realCellName); free(realCellName);
realCellName = NULL;
} }
} }
acellInfo->linkedCell = NULL; /* no linked cell */ acellInfo->linkedCell = NULL; /* no linked cell */