rpc_client: Simplify rpc_pipe_bind_step_one_done()
authorVolker Lendecke <vl@samba.org>
Thu, 29 Jul 2021 06:55:45 +0000 (08:55 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 6 Aug 2021 17:22:30 +0000 (17:22 +0000)
commitdbb1047e4744d4d6187bfe6487b6b7cb39a943ee
tree05717807de126c6d29e905475665fbcd57936ac8
parent5cb5fadce4e410e6c6e9bbc0b3e953e44e8c58d5
rpc_client: Simplify rpc_pipe_bind_step_one_done()

With just one case handled specially in a switch statement and the
rest being default:, a simple if-statement can reduce indentation.

Best viewed with "git show -b".

I wonder if the second "if (pauth->auth_type == DCERPC_AUTH_TYPE_NONE)"
leads to reachable code, this should have been taken care of already
further up. But for now I did the 1:1 translation of existing code.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_client/cli_pipe.c