mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
libadmin: Don't use undefined value
If IsValidCellHandle returns false, then we can jump to fail_pts_GroupMemberRemove, and end up using a value for ids.idlist_val which hasn't been defined. Fix this. Caught by clang-analyzer. Change-Id: I030d155f9ad2481250e84c31d4d7d26cb39a9c61 Reviewed-on: http://gerrit.openafs.org/2136 Reviewed-by: Russ Allbery <rra@stanford.edu> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
6c645092ee
commit
5388e1425d
@ -1479,6 +1479,8 @@ pts_GroupMemberRemove(const void *cellHandle, const char *userName,
|
|||||||
afs_cell_handle_p c_handle = (afs_cell_handle_p) cellHandle;
|
afs_cell_handle_p c_handle = (afs_cell_handle_p) cellHandle;
|
||||||
idlist ids;
|
idlist ids;
|
||||||
|
|
||||||
|
ids.idlist_val = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Validate arguments
|
* Validate arguments
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user