mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
Move is_valid_policy_hnd() out of net.
Guenther
(This used to be commit aae4d91e72
)
This commit is contained in:
@ -3367,3 +3367,11 @@ NTSTATUS split_ntfs_stream_name(TALLOC_CTX *mem_ctx, const char *fname,
|
|||||||
}
|
}
|
||||||
return NT_STATUS_OK;
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_valid_policy_hnd(const POLICY_HND *hnd)
|
||||||
|
{
|
||||||
|
POLICY_HND tmp;
|
||||||
|
ZERO_STRUCT(tmp);
|
||||||
|
return (memcmp(&tmp, hnd, sizeof(tmp)) != 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -21,13 +21,6 @@
|
|||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
#include "utils/net.h"
|
#include "utils/net.h"
|
||||||
|
|
||||||
bool is_valid_policy_hnd(const POLICY_HND *hnd)
|
|
||||||
{
|
|
||||||
POLICY_HND tmp;
|
|
||||||
ZERO_STRUCT(tmp);
|
|
||||||
return (memcmp(&tmp, hnd, sizeof(tmp)) != 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
NTSTATUS net_rpc_lookup_name(TALLOC_CTX *mem_ctx, struct cli_state *cli,
|
NTSTATUS net_rpc_lookup_name(TALLOC_CTX *mem_ctx, struct cli_state *cli,
|
||||||
const char *name, const char **ret_domain,
|
const char *name, const char **ret_domain,
|
||||||
const char **ret_name, DOM_SID *ret_sid,
|
const char **ret_name, DOM_SID *ret_sid,
|
||||||
|
Reference in New Issue
Block a user