nwrap: better error propagation in nwrap_add_hname()
authorMichael Adam <obnox@samba.org>
Wed, 11 Nov 2015 11:28:58 +0000 (12:28 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:30 +0000 (12:25 +0100)
commitf6e4c58663cea850b25ec2a006e2644a25deb320
treefd941320ab46f6353732361f42df99269351e27e
parentddd0ca82bb3c74de3996a8ddbe85b6d29e14f552
nwrap: better error propagation in nwrap_add_hname()

Use return codes from called functions.
Remove now unneeded asserts.
Make failure to add an entry for an alias an error.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/nss_wrapper/nss_wrapper.c