mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
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:
parent
165bd14126
commit
37eeead346
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user