LINUX: you dont need to memset() after allocating credentials
authorChas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Thu, 7 Jan 2010 23:35:37 +0000 (18:35 -0500)
committerDerrick Brashear <shadow@dementia.org>
Sat, 27 Mar 2010 04:03:15 +0000 (21:03 -0700)
commit7d69cfbc20f1354b1dd9094b5ad496c8beaa5c58
tree9e64e65d19ce2902afd3a3292df6fdaf5c352d6b
parent4b3f3169cb89c80acc0cc70d51cf47ed32c22ab2
LINUX: you dont need to memset() after allocating credentials

If you wanted to create a blank credential, you wouldn't want to make
it uid = 0.  Anyone allocating a credential SHOULD properly fill in all
fields making this blanking operation moot.  Regardless, this memset()
is before the allocation failure test and would/could panic.

Change-Id: Ia182a874a5e1bf28a2cd94898f67d81e5588d58c
Reviewed-on: http://gerrit.openafs.org/1080
Tested-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/LINUX/osi_cred.c