mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Move policy_handle_is_valid out of parse_lsa.c
Guenther
(This used to be commit c396f45e7d
)
This commit is contained in:
parent
5b8ebcf397
commit
10c3957d04
@ -1206,15 +1206,3 @@ bool lsa_io_r_lookup_names4(const char *desc, LSA_R_LOOKUP_NAMES4 *out, prs_stru
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Reads or writes an LUID_ATTR structure.
|
||||
********************************************************************/
|
||||
|
||||
bool policy_handle_is_valid(const POLICY_HND *hnd)
|
||||
{
|
||||
POLICY_HND zero_pol;
|
||||
|
||||
ZERO_STRUCT(zero_pol);
|
||||
return ((memcmp(&zero_pol, hnd, sizeof(POLICY_HND)) == 0) ? False : True );
|
||||
}
|
||||
|
@ -1859,4 +1859,14 @@ uint32 str_len_uni(UNISTR *source)
|
||||
return i;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Verifies policy handle
|
||||
********************************************************************/
|
||||
|
||||
bool policy_handle_is_valid(const POLICY_HND *hnd)
|
||||
{
|
||||
POLICY_HND zero_pol;
|
||||
|
||||
ZERO_STRUCT(zero_pol);
|
||||
return ((memcmp(&zero_pol, hnd, sizeof(POLICY_HND)) == 0) ? false : true );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user