]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r23219: Two warnings
authorVolker Lendecke <vlendec@samba.org>
Tue, 29 May 2007 17:57:52 +0000 (17:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:54 +0000 (12:22 -0500)
source/rpc_client/cli_netlogon.c
source/rpcclient/cmd_netlogon.c

index f155c736e9335f3969136e0599e392d98f49ee77..1123daaeec26bbd23bd00b60b1469b119809f74e 100644 (file)
@@ -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;
        }
index d78b7fc26e46e556937e528e7f1a217899b6129c..77f01e8885316f241e8eedb9f8c543c135b5770b 100644 (file)
@@ -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;