winbind: Make wb_sids2xids_recv work on an array

Enterprise / Samba - Volker Lendecke [samba.org] - 7 March 2015 08:28 UTC

The trigger for this is that Coverity got confused by the dual use of &xid as an array with the implicit length equality between wb_sids2xids_send and the array passed in to wb_sids2xids_recv for the result.

I don't want to start doing things just for the Coverity scan, but this makes the code clearer to me by removing this implicit expected array length equality.

5ba377f winbind: Make wb_sids2xids_recv work on an array
source3/winbindd/wb_fill_pwent.c | 8 ++++----
source3/winbindd/wb_getgrsid.c | 10 +++++-----
source3/winbindd/wb_sids2xids.c | 8 +++++++-
source3/winbindd/winbindd_getgroups.c | 2 +-
source3/winbindd/winbindd_proto.h | 2 +-
source3/winbindd/winbindd_sid_to_gid.c | 8 ++++----
source3/winbindd/winbindd_sid_to_uid.c | 8 ++++----
source3/winbindd/winbindd_sids_to_xids.c | 2 +-
8 files changed, 27 insertions(+), 21 deletions(-)

Upstream: gitweb.samba.org


  • Share