mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
mapname-allocate-enough-space-for-pr-nametoid-20030505
the alternative is to crash when we get a foreign user here
This commit is contained in:
parent
e9993b1fce
commit
76832e229e
@ -1226,7 +1226,7 @@ static int MapName_r(char *aname, char *acell, afs_int32 *aval)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
foreign = 1; /* attempt cross-cell authentication */
|
foreign = 1; /* attempt cross-cell authentication */
|
||||||
tname = (char *) malloc(anamelen+cnamelen+2);
|
tname = (char *) malloc(PR_MAXNAMELEN);
|
||||||
if (!tname) {
|
if (!tname) {
|
||||||
ViceLog(0, ("Failed malloc in MapName_r\n"));
|
ViceLog(0, ("Failed malloc in MapName_r\n"));
|
||||||
assert(0);
|
assert(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user