git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6587d22
)
ptserver-catch-empty-idlist-20020831
author
Derrick Brashear
<shadow@dementia.org>
Wed, 21 Aug 2002 22:12:58 +0000 (22:12 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Wed, 21 Aug 2002 22:12:58 +0000 (22:12 +0000)
based on report from joda+openafs@pdc.kth.se
consistent with what the opposite transform does
src/ptserver/ptprocs.c
patch
|
blob
|
history
diff --git
a/src/ptserver/ptprocs.c
b/src/ptserver/ptprocs.c
index
10f5e2e
..
91c5f47
100644
(file)
--- a/
src/ptserver/ptprocs.c
+++ b/
src/ptserver/ptprocs.c
@@
-524,7
+524,8
@@
afs_int32 idToName (call, aid, aname)
/* leave this first for rpc stub */
size = aid->idlist_len;
- if (size <= 0) size = 0;
+ if (size == 0) return 0;
+ if (size < 0) return PRTOOMANY;
aname->namelist_val = (prname *)malloc(size*PR_MAXNAMELEN);
aname->namelist_len = 0;
if (aname->namelist_val == 0) return PRNOMEM;