r20225: we can't use composite_error() in a _recv() function, as that would
authorStefan Metzmacher <metze@samba.org>
Sun, 17 Dec 2006 13:33:43 +0000 (13:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:29:25 +0000 (14:29 -0500)
commitf767a508a68e7308e0fba638626b67615a3ce2e9
tree1b4d308c012463bdd93b46c590c093591e9c46ee
parent836202f6008de333f22635b3badef328629fab88
r20225: we can't use composite_error() in a _recv() function, as that would
trigger the caller to call the _recv() function again and will be an endless
loop.

this is just a fix the to prevent this, and use a more usefull error code
than NT_STATUS_UNSUCCESSFUL

I think we should move the checks about valid responses into the function
which receives the the response (here continue_name_found()),
so that the _recv() function only needs to transfer the output vars to the caller
without any logic to analyse the network response.

metze
(This used to be commit c02048f4800fe14e975f1cf0b5bd45f14261ac18)
source4/libnet/libnet_lookup.c