diff options
Diffstat (limited to 'source/rpc_client')
-rw-r--r-- | source/rpc_client/cli_eventlog.c | 2 | ||||
-rw-r--r-- | source/rpc_client/cli_lsarpc.c | 16 | ||||
-rw-r--r-- | source/rpc_client/cli_reg.c | 15 | ||||
-rw-r--r-- | source/rpc_client/cli_samr.c | 15 | ||||
-rw-r--r-- | source/rpc_client/cli_spoolss.c | 15 | ||||
-rw-r--r-- | source/rpc_client/cli_svcctl.c | 15 |
6 files changed, 1 insertions, 77 deletions
diff --git a/source/rpc_client/cli_eventlog.c b/source/rpc_client/cli_eventlog.c index 435c125cf98..968b7b5ef24 100644 --- a/source/rpc_client/cli_eventlog.c +++ b/source/rpc_client/cli_eventlog.c @@ -69,7 +69,7 @@ BOOL event_open(const char* srv_name, const char *log, POLICY_HND *hnd) { DEBUG(0,("event_open: unk_6 or unk_7 is an access mask\n")); /*copy handle */ - *hnd->data = *r.pol.data; + *hnd = r.pol; valid_pol = register_policy_hnd(get_global_hnd_cache(), cli_con_sec_ctx(con), hnd, 0x01) && set_policy_con(get_global_hnd_cache(), hnd, con, diff --git a/source/rpc_client/cli_lsarpc.c b/source/rpc_client/cli_lsarpc.c index f350e7ede58..f00daf2b4da 100644 --- a/source/rpc_client/cli_lsarpc.c +++ b/source/rpc_client/cli_lsarpc.c @@ -1234,23 +1234,7 @@ BOOL lsa_close(POLICY_HND *hnd) if (p) { - /* check that the returned policy handle is all zeros */ - uint32 i; valid_close = True; - - for (i = 0; i < sizeof(r_c.pol.data); i++) - { - if (r_c.pol.data[i] != 0) - { - valid_close = False; - break; - } - } - if (!valid_close) - { - DEBUG(0, - ("LSA_CLOSE: non-zero handle returned\n")); - } } } diff --git a/source/rpc_client/cli_reg.c b/source/rpc_client/cli_reg.c index 94f526b4d87..7f0b8df301b 100644 --- a/source/rpc_client/cli_reg.c +++ b/source/rpc_client/cli_reg.c @@ -1084,22 +1084,7 @@ BOOL reg_close( POLICY_HND *hnd) if (p) { - /* check that the returned policy handle is all zeros */ - uint32 i; valid_close = True; - - for (i = 0; i < sizeof(r_c.pol.data); i++) - { - if (r_c.pol.data[i] != 0) - { - valid_close = False; - break; - } - } - if (!valid_close) - { - DEBUG(0,("REG_CLOSE: non-zero handle returned\n")); - } } } diff --git a/source/rpc_client/cli_samr.c b/source/rpc_client/cli_samr.c index b233f70e15a..627d90ae47e 100644 --- a/source/rpc_client/cli_samr.c +++ b/source/rpc_client/cli_samr.c @@ -2465,22 +2465,7 @@ BOOL samr_close( POLICY_HND *hnd) if (p) { - /* check that the returned policy handle is all zeros */ - uint32 i; valid_close = True; - - for (i = 0; i < sizeof(r_c.pol.data); i++) - { - if (r_c.pol.data[i] != 0) - { - valid_close = False; - break; - } - } - if (!valid_close) - { - DEBUG(4,("SAMR_CLOSE_HND: non-zero handle returned\n")); - } } } diff --git a/source/rpc_client/cli_spoolss.c b/source/rpc_client/cli_spoolss.c index 66b479094c4..5c313ed25d0 100644 --- a/source/rpc_client/cli_spoolss.c +++ b/source/rpc_client/cli_spoolss.c @@ -297,22 +297,7 @@ BOOL spoolss_closeprinter(POLICY_HND *hnd) if (p) { - /* check that the returned policy handle is all zeros */ - uint32 i; valid_close = True; - - for (i = 0; i < sizeof(r_c.handle.data); i++) - { - if (r_c.handle.data[i] != 0) - { - valid_close = False; - break; - } - } - if (!valid_close) - { - DEBUG(0,("SPOOL_CLOSEPRINTER: non-zero handle returned\n")); - } } } diff --git a/source/rpc_client/cli_svcctl.c b/source/rpc_client/cli_svcctl.c index 533656c620e..08af617afaa 100644 --- a/source/rpc_client/cli_svcctl.c +++ b/source/rpc_client/cli_svcctl.c @@ -491,22 +491,7 @@ BOOL svc_close(POLICY_HND *hnd) if (p) { - /* check that the returned policy handle is all zeros */ - uint32 i; valid_close = True; - - for (i = 0; i < sizeof(r_c.pol.data); i++) - { - if (r_c.pol.data[i] != 0) - { - valid_close = False; - break; - } - } - if (!valid_close) - { - DEBUG(1,("SVC_CLOSE: non-zero handle returned\n")); - } } } |