mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3: Fix Coverity ID 2231, REVERSE_INULL
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
This commit is contained in:
parent
889e03617d
commit
ab37eae79c
@ -62,8 +62,7 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
|
|||||||
const char *server_name,
|
const char *server_name,
|
||||||
struct client_ipc_connection **pp)
|
struct client_ipc_connection **pp)
|
||||||
{
|
{
|
||||||
struct libnetapi_private_ctx *priv_ctx =
|
struct libnetapi_private_ctx *priv_ctx;
|
||||||
(struct libnetapi_private_ctx *)ctx->private_data;
|
|
||||||
struct user_auth_info *auth_info = NULL;
|
struct user_auth_info *auth_info = NULL;
|
||||||
struct cli_state *cli_ipc = NULL;
|
struct cli_state *cli_ipc = NULL;
|
||||||
struct client_ipc_connection *p;
|
struct client_ipc_connection *p;
|
||||||
@ -72,6 +71,8 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
|
|||||||
return WERR_INVALID_PARAM;
|
return WERR_INVALID_PARAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
priv_ctx = (struct libnetapi_private_ctx *)ctx->private_data;
|
||||||
|
|
||||||
p = ipc_cm_find(priv_ctx, server_name);
|
p = ipc_cm_find(priv_ctx, server_name);
|
||||||
if (p) {
|
if (p) {
|
||||||
*pp = p;
|
*pp = p;
|
||||||
|
Loading…
Reference in New Issue
Block a user