autorid: factor idmap_autorid_sid_to_id() out of idmap_autorid_sids_to_unixids()
authorMichael Adam <obnox@samba.org>
Fri, 11 Apr 2014 16:43:58 +0000 (18:43 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 25 Apr 2014 13:35:09 +0000 (15:35 +0200)
commiteaf770a61191bdc968510b7b216d62fd633ca163
tree1fbbb9e68f7d054eed6595351c3f4a155df5f05f
parent64e267c2feaecd9c2f0a60d548ccd2ff0ee37879
autorid: factor idmap_autorid_sid_to_id() out of idmap_autorid_sids_to_unixids()

- reduces indentation
- unifies error code paths and bumping counters
- makes the code more easy to read

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/idmap_autorid.c