No point in checking for !ctx after dereferencing it
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 16 22:51:52 CET 2011 on sn-devel-104
const char *server_name,
struct client_ipc_connection **pp)
{
- struct libnetapi_private_ctx *priv_ctx =
- (struct libnetapi_private_ctx *)ctx->private_data;
+ struct libnetapi_private_ctx *priv_ctx;
struct user_auth_info *auth_info = NULL;
struct cli_state *cli_ipc = NULL;
struct client_ipc_connection *p;
return WERR_INVALID_PARAM;
}
+ priv_ctx = (struct libnetapi_private_ctx *)ctx->private_data;
+
p = ipc_cm_find(priv_ctx, server_name);
if (p) {
*pp = p;