summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-05-29 17:57:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:54 -0500
commitd807dec0f465c8735bd4964b196ff6109d8df408 (patch)
tree47bbaac7db6f685dc634d85a4e2458b44d485da4 /source3
parentd8e454664a97385d798ad53633856044f928a491 (diff)
downloadsamba-d807dec0f465c8735bd4964b196ff6109d8df408.tar.gz
samba-d807dec0f465c8735bd4964b196ff6109d8df408.tar.bz2
samba-d807dec0f465c8735bd4964b196ff6109d8df408.zip
r23219: Two warnings
(This used to be commit eccd50abdaed3e4e06cc5da5473ca1beeb3fc49a)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_netlogon.c3
-rw-r--r--source3/rpcclient/cmd_netlogon.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c
index f155c736e9..1123daaeec 100644
--- a/source3/rpc_client/cli_netlogon.c
+++ b/source3/rpc_client/cli_netlogon.c
@@ -501,7 +501,8 @@ static WERROR pull_domain_controller_info_from_getdcname_reply(TALLOC_CTX *mem_c
info->domain_controller_address_type = r->dc_address_type;
- info->domain_guid = talloc_memdup(mem_ctx, &r->domain_guid, sizeof(struct GUID));
+ info->domain_guid = (struct GUID *)talloc_memdup(
+ mem_ctx, &r->domain_guid, sizeof(struct GUID));
if (!info->domain_guid) {
return WERR_GENERAL_FAILURE;
}
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c
index d78b7fc26e..77f01e8885 100644
--- a/source3/rpcclient/cmd_netlogon.c
+++ b/source3/rpcclient/cmd_netlogon.c
@@ -254,7 +254,7 @@ static WERROR cmd_netlogon_dsr_getdcnameex2(struct rpc_pipe_client *cli,
WERROR result;
uint32 flags = DS_RETURN_DNS_NAME;
const char *server_name = cli->cli->desthost;
- const char *domain_name;
+ const char *domain_name = NULL;
const char *client_account = NULL;
uint32 mask = 0;
const char *site_name = NULL;